2022-06-19 00:17:43 +02:00
|
|
|
local modname = minetest.get_current_modname()
|
2022-10-23 22:14:52 +02:00
|
|
|
local S = minetest.get_translator(modname)
|
2022-06-19 00:17:43 +02:00
|
|
|
local modpath = minetest.get_modpath(modname)
|
2022-10-23 22:14:52 +02:00
|
|
|
local peaceful = minetest.settings:get_bool("only_peaceful_mobs", false)
|
2022-06-19 00:17:43 +02:00
|
|
|
|
|
|
|
mcl_structures.register_structure("nether_outpost",{
|
2022-10-23 22:14:52 +02:00
|
|
|
place_on = {"mcl_nether:netherrack","mcl_crimson:crimson_nylium","mcl_crimson:warped_nylium","mcl_blackstone:basalt","mcl_blackstone:soul_soil","mcl_blackstone:blackstone","mcl_nether:soul_sand"},
|
|
|
|
fill_ratio = 0.01,
|
|
|
|
chunk_probability = 900,
|
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
|
|
|
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
|
|
|
|
})
|
2022-10-23 22:14:52 +02:00
|
|
|
mcl_structures.register_structure("nether_bulwark",{
|
|
|
|
place_on = {"mcl_nether:netherrack","mcl_crimson:crimson_nylium","mcl_crimson:warped_nylium","mcl_blackstone:basalt","mcl_blackstone:soul_soil","mcl_blackstone:blackstone","mcl_nether:soul_sand"},
|
|
|
|
fill_ratio = 0.01,
|
|
|
|
chunk_probability = 600,
|
|
|
|
flags = "all_floors",
|
|
|
|
biomes = {"Nether","SoulsandValley","WarpedForest","CrimsonForest"},
|
|
|
|
sidelen = 32,
|
|
|
|
solid_ground = true,
|
|
|
|
make_foundation = true,
|
|
|
|
y_min = mcl_vars.mg_lava_nether_max - 1,
|
|
|
|
y_max = mcl_vars.mg_nether_max - 30,
|
|
|
|
filenames = {
|
|
|
|
modpath.."/schematics/mcl_nether_fortresses_nether_bulwark.mts"
|
|
|
|
},
|
2022-10-26 04:05:24 +02:00
|
|
|
daughters = {{
|
|
|
|
files = {
|
|
|
|
modpath.."/schematics/mcl_nether_fortresses_nether_bulwark_interior_1.mts",
|
|
|
|
modpath.."/schematics/mcl_nether_fortresses_nether_bulwark_interior_2.mts",
|
|
|
|
modpath.."/schematics/mcl_nether_fortresses_nether_bulwark_interior_3.mts",
|
|
|
|
modpath.."/schematics/mcl_nether_fortresses_nether_bulwark_interior_4.mts",
|
|
|
|
},
|
|
|
|
pos = vector.new(5,0,5),
|
|
|
|
},
|
2022-10-24 07:07:56 +02:00
|
|
|
},
|
2022-10-23 22:14:52 +02:00
|
|
|
y_offset = 0,
|
|
|
|
construct_nodes = {"group:wall"},
|
|
|
|
after_place = function(pos,def,pr)
|
|
|
|
if not peaceful then
|
|
|
|
local p1 = vector.offset(pos,-10,0,-10)
|
|
|
|
local p2 = vector.offset(pos,10,24,10)
|
|
|
|
local sp = minetest.find_nodes_in_area_under_air(p1,p2,{"mcl_blackstone:blackstone_brick_polished"})
|
|
|
|
if sp and #sp > 0 then
|
|
|
|
for i=1,5 do
|
|
|
|
local pos = vector.offset(sp[pr:next(1,#sp)],0,1,0)
|
|
|
|
if pos then
|
|
|
|
minetest.add_entity(pos,"mobs_mc:piglin")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
local pos = vector.offset(sp[pr:next(1,#sp)],0,1,0)
|
|
|
|
if pos then
|
|
|
|
minetest.add_entity(pos,"mobs_mc:piglin_brute")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
loot = {
|
|
|
|
["mcl_chests:chest_small" ] ={
|
|
|
|
{
|
|
|
|
stacks_min = 1,
|
|
|
|
stacks_max = 2,
|
|
|
|
items = {
|
|
|
|
--{ itemstring = "FIXME:spectral_arrow", weight = 1, amount_min = 10, amount_max=28 },
|
|
|
|
{ itemstring = "mcl_blackstone:blackstone_gilded", weight = 1, amount_min = 8, amount_max=12 },
|
|
|
|
{ itemstring = "mcl_core:iron_ingot", weight = 1, amount_min = 4, amount_max=9 },
|
|
|
|
{ itemstring = "mcl_core:gold_ingot", weight = 1, amount_min = 4, amount_max=9 },
|
|
|
|
{ itemstring = "mcl_core:crying_obsidian", weight = 1, amount_min = 3, amount_max=8 },
|
|
|
|
{ itemstring = "mcl_bows:crossbow", weight = 1, func = function(stack, pr)
|
|
|
|
mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr)
|
|
|
|
end },
|
|
|
|
{ itemstring = "mcl_core:goldblock", weight = 1, },
|
|
|
|
{ itemstring = "mcl_tools:sword_gold", weight = 1, },
|
|
|
|
{ itemstring = "mcl_tools:axe_gold", weight = 1, func = function(stack, pr)mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr) end },
|
|
|
|
{ itemstring = "mcl_armor:helmet_gold", weight = 1, func = function(stack, pr)mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr) end },
|
|
|
|
{ itemstring = "mcl_armor:chestplate_gold", weight = 1, func = function(stack, pr)mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr) end },
|
|
|
|
{ itemstring = "mcl_armor:leggings_gold", weight = 1, func = function(stack, pr)mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr) end },
|
|
|
|
{ itemstring = "mcl_armor:boots_gold", weight = 1, func = function(stack, pr)mcl_enchanting.enchant_uniform_randomly(stack, {"soul_speed"}, pr) end },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stacks_min = 2,
|
|
|
|
stacks_max = 4,
|
|
|
|
items = {
|
|
|
|
{ itemstring = "mcl_bows:arrow", weight = 4, amount_min = 5, amount_max=17 },
|
|
|
|
{ itemstring = "mcl_mobitems:string", weight = 4, amount_min = 1, amount_max=6 },
|
|
|
|
{ itemstring = "mcl_core:iron_nugget", weight = 1, amount_min = 2, amount_max = 6 },
|
|
|
|
{ itemstring = "mcl_core:gold_nugget", weight = 1, amount_min = 2, amount_max = 6 },
|
|
|
|
{ itemstring = "mcl_mobitems:leather", weight = 1, amount_min = 1, amount_max = 3 },
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
stacks_min = 1,
|
|
|
|
stacks_max = 1,
|
|
|
|
items = {
|
|
|
|
{ itemstring = "mcl_compass:lodestone" },
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
},
|
|
|
|
})
|