73 lines
1.9 KiB
Lua

minetest.register_decoration({
deco_type = "simple",
sidelen = 16,
fill_ratio = 0.0003,
place_on = {"group:ground"},
y_max = PyuTest.BIOME_TOPS.mountains,
y_min = PyuTest.SURFACE_BOTTOM,
decoration = {
"pyutest_core:trash_lootbox",
"pyutest_core:resource_lootbox",
"pyutest_core:griefer_lootbox",
"pyutest_core:liquid_sources_lootbox",
"pyutest_core:lighting_lootbox",
}
})
PyuTest.register_structure("igloo", "Igloo", {
place_on = {"pyutest_core:snow_block"},
fill_ratio = 0.00004,
biomes = {"frozen_plains"},
y_max = PyuTest.BIOME_TOPS.frozen_plains,
y_min = 1,
rotation = "random",
flags = "place_center_x, place_center_z",
place_offset_y = 1
})
PyuTest.register_structure("desertwell", "DesertWell", {
place_on = {"pyutest_core:sand_block"},
fill_ratio = 0.00006,
biomes = {"desert"},
y_max = PyuTest.BIOME_TOPS.desert,
y_min = 1,
rotation = "random"
})
PyuTest.register_structure("ice_spike", "IceSpike", {
fill_ratio = 0.0008,
place_on = {
"pyutest_core:ice_block",
},
biomes = {
"ice_spikes",
},
y_max = PyuTest.BIOME_TOPS.ice_spikes,
y_min = PyuTest.OVERWORLD_BOTTOM,
})
PyuTest.register_structure("ocean_ruins", "OceanRuins", {
fill_ratio = 0.0002,
place_on = {"pyutest_core:gravel_block"},
biomes = PyuTest.get_biomes_from_type(PyuTest.BIOME_TYPES.OCEAN),
y_max = PyuTest.DEEP_OCEAN_MAX + 4,
y_min = PyuTest.DEAP_OCEAN_MIN,
spawn_by = {"pyutest_core:water_source"},
num_spawn_by = 2
})
PyuTest.register_structure("snowman_tower", "SnowmanTower", {
fill_ratio = 0.000007,
place_on = {
"pyutest_core:ice_block",
"pyutest_core:snow_block"
},
biomes = {
"frozen_plains",
"ice_spikes",
"snowy_forest"
},
y_max = PyuTest.BIOME_TOPS.forest,
y_min = PyuTest.OVERWORLD_BOTTOM,
})