-
Notifications
You must be signed in to change notification settings - Fork 0
Block Definition File
This page covers all the properties you can use when defining blocks in the WesterosBlocks mod.
These properties are available for all block types:
| Property | Description |
|---|---|
blockName |
Name of block type (must be lowercase). Full name will be 'westerosblocks:' plus this name |
blockType |
Type of block being defined (see Custom-Block-Types) |
label |
Display name for the block |
creativeTab |
Which creative tab the block appears in |
material |
Type of material for the block |
| Property | Description | Default |
|---|---|---|
hardness |
Block's durability/hardness | - |
resistance |
Block's explosion resistance | - |
lightValue |
Emitted light level (0=none, 1=max) | 0 |
stepSound |
Sound when walked on | "stone" |
alphaRender |
Use alpha blending (translucent) | false |
nonOpaque |
Block is not solid/opaque | false |
legacyBlockID |
Legacy block-id:metadata value from 1.12.2 | - |
Available materials: air, grass, ground, wood, rock, iron, anvil, water, lava, leaves, plants, vine, sponge, cloth, fire, sand, glass, tnt, coral, ice, snow, craftedSnow, cactus, clay, portal, cake, web, piston, decoration, stone
Available step sounds: powder, wood, gravel, grass, stone, metal, glass, cloth, sand, snow, ladder, anvil, plant, slime
Vanilla Minecraft tabs: buildingBlocks, decorations, redstone, transportation, misc, food, tools, combat, brewing, materials
WesterosBlocks tabs: WesterosBrick, WesterosCobbleStone, WesterosSandstone, WesterosMarblePlaster, WesterosTimberFrame, WesterosRoofing, WesterosWoodPlanks, WesterosPanellingCarvings, WesterosMetal, WesterosWindowsGlass, WesterosClothFibers, WesterosFurniture, WesterosLighting, WesterosToolBlocks, WesterosFoodBlocks, WesterosDecor, WesterosTerrainSets, WesterosGrassDirt, WesterosSandGravel, WesterosLogs, WesterosLeaves, WesterosGrassesShrubs, WesterosFlowers, WesterosCropsHerbs, WesterosWaterAir, WesterosUtility, WesterosSounds, WesterosDoNotUse
You can define required tools and levels for harvesting:
"harvestLevel": [
{
"tool": "pickaxe",
"level": 2
}
]Available tools:
- axe
- hoe
- pickaxe
- shovel
Levels range from 0-4.
The colorMult property can be used to tint blocks. Values can be:
- Hex color: "#RRGGBB"
- Built-in maps: "water", "foliage", "grass", "pine", "birch", "basic", "lily"
- Custom map: Path to a colormap file in assets/westerosblocks/
"randomTextures": [
{
"textures": ["texture1", "texture2"],
"weight": 1
}
]"overlayTextures": ["overlay1", "overlay2"]"collisionBoxes": [
{
"xMin": 0,
"xMax": 1,
"yMin": 0,
"yMax": 1,
"zMin": 0,
"zMax": 1
}
]"supportBoxes": [
{
"xMin": 0,
"xMax": 1,
"yMin": 0,
"yMax": 1,
"zMin": 0,
"zMax": 1
}
]Some block types support multiple states:
"states": [
{
"stateID": "state1",
"textures": ["texture1", "texture2"],
"lightValue": 0.5
}
]