cawezs_mantle_to_stratus/elements/Treespatches.mod.json
2025-01-11 21:22:12 -05:00

10 lines
3.2 KiB
JSON

{
"_fv": 73,
"_type": "feature",
"definition": {
"skipPlacement": false,
"generationStep": "SURFACE_STRUCTURES",
"restrictionBiomes": [],
"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_random_patch_simple\" inline=\"false\"><field name=\"tries\">96</field><field name=\"xzSpread\">7</field><field name=\"ySpread\">3</field><comment pinned=\"false\" h=\"122\" w=\"245\">This block represents a block patch feature. The blocks will only generate in valid positions (for example, grass will never generate on a stone block).Patches of plants should be generated during the VEGETAL_DECORATION stage.</comment><value name=\"block\"><block type=\"state_provider_weighted\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" inputs=\"3\"></mutation><field name=\"weight0\">1</field><field name=\"weight1\">1</field><field name=\"weight2\">1</field><value name=\"entry0\"><block type=\"blockstate_selector\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" inputs=\"0\"></mutation><field name=\"block\">Blocks.SWEET_BERRY_BUSH</field></block></value><value name=\"entry1\"><block type=\"blockstate_selector\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" inputs=\"0\"></mutation><field name=\"block\">Blocks.PUMPKIN</field><comment pinned=\"false\" h=\"80\" w=\"160\">This is the block being placed.</comment></block></value><value name=\"entry2\"><block type=\"blockstate_selector\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" inputs=\"0\"></mutation><field name=\"block\">Blocks.MELON_BLOCK</field></block></value></block></value><value name=\"condition\"><block type=\"block_predicate_all_of\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" inputs=\"2\"></mutation><comment pinned=\"false\" h=\"80\" w=\"160\">Pumpkins need to verify two conditions to be placed.</comment><value name=\"condition0\"><block type=\"block_predicate_is_air\"><comment pinned=\"false\" h=\"80\" w=\"160\">Pumpkins can't replace other blocks</comment></block></value><value name=\"condition1\"><block type=\"block_predicate_matching_blocks\"><field name=\"x\">0</field><field name=\"y\">-1</field><field name=\"z\">0</field><comment pinned=\"false\" h=\"80\" w=\"160\">Pumpkins can only generate on grass blocks</comment><value name=\"blockSet\"><block type=\"block_holderset_list\"><mutation xmlns=\"http://www.w3.org/1999/xhtml\" inputs=\"1\"></mutation><field name=\"block0\">Blocks.GRASS</field></block></value></block></value></block></value></block></value><next><block type=\"placement_rarity\"><field name=\"rarity\">10</field><comment pinned=\"false\" h=\"80\" w=\"160\">This is so the patch only generates in some of the chunks. The higher the value, the rarer the patch will be</comment><next><block type=\"placement_count_on_every_layer\"><value name=\"count\"><block type=\"int_provider_constant\"><field name=\"value\">1</field></block></value><next><block type=\"placement_biome_filter\"><comment pinned=\"false\" h=\"80\" w=\"160\">We add a biome filter, so that the patches don't generate outside of the current biome</comment></block></next></block></next></block></next></block></xml>"
}
}