Example of a block

assets\coreextensions\blockstates\other_block.json

{
  "variants": {
    "": {
      "model": "coreextensions:block/other_block"
    }
  }
}

assets\coreextensions\models\block\other_block.json

{
  "parent": "block/cube_all",
  "textures": {
    "all": "coreextensions:block/other_block"
  }
}

assets\coreextensions\models\item\other_block.json

{
  "parent": "coreextensions:block/other_block"
}

These JSON files correspond to different aspects of your block's appearance and behavior in the game. The "blockstates" JSON defines how your block's different variants are linked to models. The "models/block" JSON defines the shape and textures of the block when placed in the world. The "models/item" JSON defines how the block looks when it's in the player's inventory.

Additionally, the texture for the block should be placed in the corresponding directory:

Texture File: assets\coreextensions\textures\block\other_block.png

Make sure to place these files in the appropriate directories within your resource pack to ensure that your block's appearance is properly defined and displayed in the game.

Last updated