Skip to content
Bluebotlabz edited this page Jul 3, 2022 · 5 revisions

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:

  1. Their definition
  2. Their textures
  3. Their renderer
  4. Their name
  5. 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

Clone this wiki locally