-
Notifications
You must be signed in to change notification settings - Fork 5
Home
WesterosBlocks is a Minecraft Fabric mod that adds customizable blocks through JSON configuration files. The mod enables creation of block types including decorative blocks, interactive blocks, natural blocks and special blocks without needing to write a bunch of code.
The WesterosBlocks system uses a JSON file format we call a block definition file to define:
- Block properties and behaviors
- Creative menu organization
- Color maps and tinting
- Block textures and models
- Item textures and models
You can find all the custom block definitions in the resources/definitions
folder. There are several files here:
block_sets.json
Where we define custom block sets
color_maps.json
Define custom color tints that can be applied to blocks
block_tags.json
Custom block tags
item_tags.json
Custom item tags
menu_overrides.json
Configure where blocks appear in the creative menu
You will also notice a blocks/ directory full of json files per custom block, sorted by their block type.
Here's a minimal example:
{
"blockName": "my_stone_block",
"blockType": "solid",
"label": "My Stone Block",
"creativeTab": "buildingBlocks",
"material": "rock",
"textures": ["my_block/my_block_texture"]
}