minetest.register_decoration({ deco_type = "simple", place_on = {"pyutest_core:grass_block"}, sidelen = 16, fill_ratio = 0.009, biomes = {"forest", "grassland"}, y_max = PyuTestCore_BiomeTops.grassland, y_min = 1, decoration = {"pyutest_core:flower", "pyutest_core:flower2", "pyutest_core:flower3", "pyutest_core:flower4"} }) minetest.register_decoration({ deco_type = "simple", place_on = {"pyutest_core:grass_block"}, sidelen = 16, fill_ratio = 0.048, biomes = {"grassland"}, y_max = PyuTestCore_BiomeTops.grassland, y_min = 1, decoration = "pyutest_core:grass_plant" }) minetest.register_decoration({ deco_type = "simple", place_on = {"pyutest_core:grass_block"}, sidelen = 16, fill_ratio = 0.0018, biomes = {"grassland"}, y_max = PyuTestCore_BiomeTops.grassland, y_min = 1, decoration = "pyutest_core:haybale_block" }) minetest.register_decoration({ deco_type = "simple", place_on = {"pyutest_core:dirt_block", "pyutest_core:sand_block"}, sidelen = 16, fill_ratio = 0.019, biomes = {"wasteland", "desert"}, y_max = PyuTestCore_BiomeTops.grassland, y_min = 1, decoration = "pyutest_core:deadbush" }) minetest.register_decoration({ deco_type = "schematic", place_on = {"pyutest_core:grass_block"}, sidelen = 16, fill_ratio = 0.004, biomes = {"forest"}, y_max = PyuTestCore_BiomeTops.grassland, y_min = 1, schematic = PyuTestCore.get_schem_path("tree"), rotation = "random", flags = "place_center_x, place_center_z" }) minetest.register_decoration({ deco_type = "schematic", place_on = {"pyutest_core:grass_block"}, sidelen = 16, fill_ratio = 0.004, biomes = {"forest"}, y_max = PyuTestCore_BiomeTops.grassland, y_min = 1, schematic = PyuTestCore.get_schem_path("tree2"), rotation = "random", flags = "place_center_x, place_center_z" }) -- turns out lsystems are not in minetest yet, maybe they will in 5.9.0? -- minetest.register_decoration({ -- deco_type = "lsystem", -- place_on = {"pyutest_core:grass_block"}, -- sidelen = 16, -- fill_ratio = 0.004, -- biomes = {"forest"}, -- y_max = PyuTestCore_BiomeTops.grassland, -- y_min = 1, -- treedef = { -- axiom="FFFFFAFFBF", -- rules_a="[&&&FFFFF&&FFFF][&&&++++FFFFF&&FFFF][&&&----FFFFF&&FFFF]", -- rules_b="[&&&++FFFFF&&FFFF][&&&--FFFFF&&FFFF][&&&------FFFFF&&FFFF]", -- trunk="pyutest_core:wooden_block", -- leaves="pyutest_core:leaves_block", -- angle=30, -- iterations=2, -- random_level=0, -- trunk_type="single", -- thin_branches=true, -- fruit = "pyutest_core:leaves_block", -- fruit_chance = 10 -- } -- }) minetest.register_decoration({ deco_type = "schematic", place_on = {"pyutest_core:mycelium_block"}, sidelen = 16, fill_ratio = 0.003, biomes = {"mushroom_fields"}, y_max = PyuTestCore_BiomeTops.mushroom_fields, y_min = 1, schematic = PyuTestCore.get_schem_path("mushroom"), rotation = "random", flags = "place_center_x, place_center_z" })