In this tutorial I will show you how to add new blocks to the game.
- Adding a new Block
- Shaping the Block
- Adding a recipe for the Block
1.Adding a new block:
2. Shaping the block
Code reference: Tile::setShape. It takes 6 input parameters: minX, minY, minZ, maxX, maxY, maxZ
Usage: tileInstancePointer->setShape(...)
The minX, minY, minZ parameters are the offset of starting points of the drawn block, and the maxX, maxY and maxZ are the ends.
Usage: tileInstancePointer->setShape(...)
The minX, minY, minZ parameters are the offset of starting points of the drawn block, and the maxX, maxY and maxZ are the ends.
Some sample shapes:
- Cube: Tile::setShape(0.25, 0.25, 0.25, 0.75, 0.75, 0.75);
- Pillar: Tile::setShape(0.25, 0, 0.25, 0.75, 1, 0.75);
- Enchanting Table: Tile::setShape(0, 0, 0, 1, 0.75, 1);
Could you upload tge main.cpp files on dropbox? I can not read in the video. Pls
ReplyDeleteCould you upload tge main.cpp files on dropbox? I can not read in the video. Pls
ReplyDeleteI can not add blocks! When active Addon and start the game shows an error!
ReplyDeleteYou know how i can make dual wieldings??????
ReplyDelete