14 lines
3.1 KiB
JSON
14 lines
3.1 KiB
JSON
{
|
|
"_fv": 73,
|
|
"_type": "feature",
|
|
"definition": {
|
|
"skipPlacement": false,
|
|
"generationStep": "TOP_LAYER_MODIFICATION",
|
|
"restrictionBiomes": [
|
|
{
|
|
"value": "#minecraft:is_mountain"
|
|
}
|
|
],
|
|
"featurexml": "<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"feature_container\" deletable=\"false\" x=\"40\" y=\"40\"><value name=\"feature\"><block type=\"feature_ore\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" inputs=\"2\"></mutation><field name=\"size\">9</field><field name=\"discardOnAirChance\">0</field><comment pinned=\"false\" h=\"118\" w=\"231\">This block represents a feature for iron ore. This handles both the stone variant and the deepslate variant. Ores should be generated during the UNDERGROUND_ORES generation stage.</comment><value name=\"target0\"><block type=\"ore_target\"><comment pinned=\"false\" h=\"80\" w=\"160\">If the target block can be replaced by stone ores, place the stone variant</comment><value name=\"target\"><block type=\"rule_test_tag_match\"><field name=\"tag\">stone_ore_replaceables</field></block></value><value name=\"state\"><block type=\"blockstate_selector\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" inputs=\"0\"></mutation><field name=\"block\">Blocks.DIAMOND_ORE</field></block></value></block></value><value name=\"target1\"><block type=\"ore_target\"><comment pinned=\"false\" h=\"80\" w=\"160\">If the target block can be replaced by deepslate ores, place the deepslate variant</comment><value name=\"target\"><block type=\"rule_test_tag_match\"><field name=\"tag\">deepslate_ore_replaceables</field></block></value><value name=\"state\"><block type=\"blockstate_selector\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" inputs=\"0\"></mutation><field name=\"block\">Blocks.DEEPSLATE_DIAMOND_ORE</field></block></value></block></value></block></value><next><block type=\"placement_count\"><comment pinned=\"false\" h=\"92\" w=\"224\">Placement modifiers are processed from top to bottom. First, we repeat the feature 10 times on every chunk</comment><value name=\"count\"><block type=\"int_provider_constant\"><field name=\"value\">10</field><comment pinned=\"false\" h=\"80\" w=\"160\">This is how many times the feature is repeated.</comment></block></value><next><block type=\"placement_in_square\"><comment pinned=\"false\" h=\"80\" w=\"189\">We then move each feature horizontally, so that they don't generate in the corner of the chunk</comment><next><block type=\"placement_height_triangular\"><comment pinned=\"false\" h=\"80\" w=\"160\">We then set the height of the feature. This ore feature generates with a triangular distribution between -24 and 56</comment><value name=\"min\"><block type=\"vertical_anchor_absolute\"><field name=\"value\">-64</field></block></value><value name=\"max\"><block type=\"vertical_anchor_absolute\"><field name=\"value\">24</field></block></value><next><block type=\"placement_biome_filter\"><comment pinned=\"false\" h=\"85\" w=\"210\">Finally, we check that the feature isn't outside of the biome. This placement modifier should always be the last one.</comment></block></next></block></next></block></next></block></next></block></xml>"
|
|
}
|
|
} |