Skip to main content

Block

Register

{
"formatVersion": 1,
"block": {
"identifier": "stone", //Will be `cg:stone`
"intrinsic": {
"name": "block.stone.name.infact.this.can+be?any!thing_", //Translation key, will add namespace as well
"selection_box": [{
"start": [0, 0, 0],
"end": [1, 1, 1]
}],
"collision_box": "auto", //Save you three lines of boilerplate above
"tags": [
"stone_family", //Grouping tag, usually for unified crafting recipes or templates
"stone_tier", //Mining tier
"mossify:transformable_to_moss", //Can add tags for compatibility with other mods!
":can_contain_general_fluid" //Can preemptively expose tags for other mods. Noted that this tag has empty namespace (":"), which means it's an intrinsic tag.
],
"render": {
"family": "opaque",
"texture": "stone", //Texture identifier `cg:stone`, register them in texture APIs
"ambient_occlusion": true
},
"lightsource": {
"lightmap": true,
"emmision": false,
"dampening": "all"
},
"_deferred": { //Anything starting with `_` is by convention an experimental feature!
"roughness": 0.5,
"metallic": 0.0,
}
},
"components": {
"cg_base:hardness": 1.5,
"cg_base:explosion_resistance": 10,
"cg_maps:map_color": [0.5, 0.5, 0.5, 1],
"cg_base:contains_fluid": {
"enabled": true,
"include": ["cg:lava", "mentle:molten_metal"] //Can be identifiers or tags, based on the design of this component's JSON API, but we recommend using different properties for identifiers and tags so we don't need to look them up
//"include_tags": ["mentle:molten_metal"]
}
}
}
}
JSON
JS