-
Notifications
You must be signed in to change notification settings - Fork 0
Blocks
This section covers the development of blocks and how you can add a block to Crafti, or customize a pre-existing block
There are two main types of blocks:
Which cab be broken-down into 4 main sections:
- Their definition
- Their textures
- Their renderer
- Their name
- And lastly, adding the block to the inventory
By going through those 5 steps, you should gain an understanding on how blocks are implemented in Crafti
And their more advanced counterpart:
Which are similar to regular blocks, however, they have more advanced logic and can store data, similar to TileEntities in Minecraft.
Special blocks achieve this by using a custom renderer, meaning that anything which wants to have custom logic in it must implement it in the block's renderer
They are broken down into the same 5 parts as Regular Blocks, however, there are variations and most logic is handled by the renderer: 1. 2. 3. 4. 5.
NOTE: For multiple block types, they must each be added to the inventory individualy if you want them to be useable by the player
- Home
- Building Crafti
- Crafti Versions
- Crafti Textures
-
Crafti Development
-
Inventory
- Adding blocks to inventory
- Changing inventory parameters
-
Blocks
- Regular Blocks
- Special Blocks
- Special Block Definitions
- Special Block Textures
- Special Block Name
- Special Block Renderers/Logic
- Special Block Data
- Tick() and Saving Data
- Tutorial: Redstone Wool
- Advanced Block Documentation
- Warning
- All Included Renderers
- Block Meshes
- Block Collision
- Block Transparency
- Block Renderer Texture "Cropping"
- All Block Renderer Parameters
- All Block Renderer Functions
- Block Data Structure
- Redstone
- How Redstone works in Crafti
- Redstone in special blocks
- World
- Chunks
- World Generation
- Structure Generation
- Localisation
- Setting the game's language
- Adding a language
-
Inventory