Block Definition¶
Block data can be defined on four locations, all inside the assets folder:
blockscontains the block definitions. All files in this folder should have a.blockextension. Block definitions are limited to a number of properties. See Block Attributes for a complete list.blockTilescontains the block tile textures. The textures should be in the.pngformat with a size of16x16.shapescontains special shapes for blocks with a unique model. Files in this folder should have a.shapeextension. See Block Shapes for a full reference on how to generate these files from blender.prefabscan be used to define extra behavior for blocks via prefabs. Files in this folder should have a.prefabextension. Everything which can not be defined in the.blockfile should be defined here. In most of the cases, this will be Components and their initial values. Think about a spike component on a cactus block, which defines how many damage you will take if you touch the block.