2022-06-19 00:17:43 +02:00
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
local modpath = minetest.get_modpath(modname)
|
|
|
|
|
|
|
|
mcl_structures.register_structure("nether_outpost",{
|
|
|
|
place_on = {"mcl_nether:netherrack","mcl_crimson:crimson_nylium","mcl_crimson:warped_nylium","mcl_blackstone:basalt","mcl_blackstone:soul_soil"},
|
2022-10-23 17:02:54 +02:00
|
|
|
fill_ratio = 0.001,
|
|
|
|
chunk_probability = 600,
|
2022-06-19 00:17:43 +02:00
|
|
|
flags = "all_floors",
|
|
|
|
biomes = {"Nether","SoulsandValley","WarpedForest","CrimsonForest","BasaltDelta"},
|
2022-10-23 17:02:54 +02:00
|
|
|
sidelen = 24,
|
2022-06-22 16:47:43 +02:00
|
|
|
solid_ground = true,
|
2022-06-23 20:22:36 +02:00
|
|
|
make_foundation = true,
|
2022-06-23 01:42:20 +02:00
|
|
|
y_min = mcl_vars.mg_lava_nether_max - 1,
|
2022-06-19 00:17:43 +02:00
|
|
|
y_max = mcl_vars.mg_nether_max - 30,
|
2022-10-23 17:02:54 +02:00
|
|
|
filenames = { modpath.."/schematics/mcl_nether_fortresses_nether_outpost.mts" },
|
2022-06-19 00:17:43 +02:00
|
|
|
y_offset = 0,
|
|
|
|
after_place = function(pos)
|
|
|
|
local sp = minetest.find_nodes_in_area(pos,vector.offset(pos,0,20,0),{"mcl_mobspawners:spawner"})
|
|
|
|
if not sp[1] then return end
|
2022-10-23 17:02:54 +02:00
|
|
|
table.shuffle(sp)
|
|
|
|
mcl_mobspawners.setup_spawner(sp[1], "mobs_mc:blaze", 0, minetest.LIGHT_MAX+1, 10, 8, 0)
|
2022-06-19 00:17:43 +02:00
|
|
|
end
|
|
|
|
})
|