minetest.register_decoration({ deco_type = "schematic", place_on = {"pyutest_core:grass_block"}, sidelen = 16, fill_ratio = 0.00004, biomes = {"grassland"}, y_max = PyuTestCore_BiomeTops.grassland, y_min = 1, schematic = PyuTestCore.get_schem_path("hut"), rotation = "random", flags = "place_center_x, place_center_z" }) minetest.register_decoration({ deco_type = "schematic", place_on = {"pyutest_core:snow_block"}, sidelen = 16, fill_ratio = 0.00004, biomes = {"frozen_plains"}, y_max = PyuTestCore_BiomeTops.frozen_plains, y_min = 1, schematic = PyuTestCore.get_schem_path("igloo"), rotation = "random", flags = "place_center_x, place_center_z" }) minetest.register_decoration({ deco_type = "schematic", place_on = {"pyutest_core:snow_block"}, sidelen = 16, fill_ratio = 0.00007, biomes = {"frozen_plains"}, y_max = PyuTestCore_BiomeTops.frozen_plains, y_min = 1, schematic = PyuTestCore.get_schem_path("snowycamp"), rotation = "random", flags = "place_center_x, place_center_z" }) minetest.register_decoration({ deco_type = "schematic", place_on = {"pyutest_core:sand_block"}, sidelen = 16, fill_ratio = 0.00006, biomes = {"desert"}, y_max = PyuTestCore_BiomeTops.desert, y_min = 1, schematic = PyuTestCore.get_schem_path("desertwell"), rotation = "random", flags = "place_center_x, place_center_z" }) local rblocks = minetest.registered_nodes local blocks = {} for k, _ in pairs(rblocks) do local m = k:find("_block") if m ~= nil then table.insert(blocks, k) end end minetest.register_decoration({ deco_type = "simple", sidelen = 16, fill_ratio = 0.0003, place_on = blocks, biomes = minetest.registered_biomes, y_max = PyuTestCore_BiomeTops.mountains, y_min = PyuTestCore_WorldBottom, decoration = { "pyutest_core:trash_lootbox", "pyutest_core:resource_lootbox", "pyutest_core:griefer_lootbox", "pyutest_core:liquid_sources_lootbox", "pyutest_core:lighting_lootbox", } }) minetest.register_decoration({ deco_type = "schematic", sidelen = 16, fill_ratio = 0.0004, schematic = PyuTestCore.get_schem_path("icespike"), place_on = {"pyutest_core:ice_block"}, biomes = { "ice_spikes", }, y_max = PyuTestCore_BiomeTops.ice_spikes, y_min = PyuTestCore_WorldBottom, flags = "place_center_x, place_center_z", }) minetest.register_decoration({ deco_type = "schematic", sidelen = 16, fill_ratio = 0.0001, schematic = PyuTestCore.get_schem_path("obsidian-mound"), place_on = {"pyutest_core:mycelium_block"}, biomes = { "mushroom_fields" }, y_max = PyuTestCore_BiomeTops.mushroom_fields, y_min = PyuTestCore_WorldBottom, flags = "", place_offset_y = 1 })