2024-08-03 17:21:19 -06:00

89 lines
2.2 KiB
Lua

minetest.register_decoration({
deco_type = "simple",
sidelen = 16,
fill_ratio = 0.0003,
place_on = {"group:ground"},
y_max = PyuTestCore_BiomeTops.mountains,
y_min = PyuTestCore_SurfaceBottom,
decoration = {
"pyutest_core:trash_lootbox",
"pyutest_core:resource_lootbox",
"pyutest_core:griefer_lootbox",
"pyutest_core:liquid_sources_lootbox",
"pyutest_core:lighting_lootbox",
}
})
PyuTestMapgen.register_structure("igloo", "Igloo", {
place_on = {"pyutest_core:snow_block"},
fill_ratio = 0.00004,
biomes = {"frozen_plains"},
y_max = PyuTestCore_BiomeTops.frozen_plains,
y_min = 1,
rotation = "random",
flags = "place_center_x, place_center_z",
place_offset_y = 1
})
PyuTestMapgen.register_structure("desertwell", "DesertWell", {
place_on = {"pyutest_core:sand_block"},
fill_ratio = 0.00006,
biomes = {"desert"},
y_max = PyuTestCore_BiomeTops.desert,
y_min = 1,
rotation = "random"
})
PyuTestMapgen.register_structure("ice_spike", "IceSpike", {
fill_ratio = 0.0008,
place_on = {
"pyutest_core:ice_block",
"pyutest_core:stone_block"
},
biomes = {
"ice_spikes",
"ice_spikes_ocean",
"ice_spikes_cave"
},
y_max = PyuTestCore_BiomeTops.ice_spikes,
y_min = PyuTestCore_WorldBottom,
-- place_offset_y = -1,
spawn_by = {"air"},
num_spawn_by = 2
})
PyuTestMapgen.register_structure("obsidian_mound", "ObsidianMound", {
fill_ratio = 0.0001,
place_on = {"pyutest_core:mycelium_block"},
biomes = {
"mushroom_fields"
},
y_max = PyuTestCore_BiomeTops.mushroom_fields,
y_min = PyuTestCore_SurfaceBottom,
})
PyuTestMapgen.register_structure("ocean_ruins", "OceanRuins", {
fill_ratio = 0.0002,
place_on = {"pyutest_core:gravel_block"},
biomes = PyuTestCore.get_biomes_from_type(PyuTestCore.BIOME_TYPES.OCEAN),
y_max = PyuTestCore_DeepOceanMax + 4,
y_min = PyuTestCore_DeepOceanMin,
spawn_by = {"pyutest_core:water_source"},
num_spawn_by = 2
})
PyuTestMapgen.register_structure("snowman_tower", "SnowmanTower", {
fill_ratio = 0.00002,
place_on = {
"pyutest_core:ice_block",
"pyutest_core:snow_block"
},
biomes = {
"frozen_plains",
"ice_spikes",
"snowy_forest"
},
y_max = PyuTestCore_BiomeTops.forest,
y_min = PyuTestCore_WorldBottom,
})