mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Adjusted spawn chance and fixed the walls on generation, thanks cora.
This commit is contained in:
parent
84691c393d
commit
70277276b0
@ -10,7 +10,7 @@ mcl_structures.register_structure("pillager_outpost",{
|
|||||||
make_foundation = true,
|
make_foundation = true,
|
||||||
sidelen = 18,
|
sidelen = 18,
|
||||||
y_offset = 0,
|
y_offset = 0,
|
||||||
chunk_probability = 200,
|
chunk_probability = 600,
|
||||||
y_max = mcl_vars.mg_overworld_max,
|
y_max = mcl_vars.mg_overworld_max,
|
||||||
y_min = 1,
|
y_min = 1,
|
||||||
biomes = { "Desert", "Plains", "Savanna", "IcePlains", "Taiga" },
|
biomes = { "Desert", "Plains", "Savanna", "IcePlains", "Taiga" },
|
||||||
@ -54,9 +54,9 @@ mcl_structures.register_structure("pillager_outpost",{
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
},
|
},
|
||||||
after_place = function (p,def,pr)
|
after_place = function(p,def,pr)
|
||||||
local p1 = vector.offset(p,-5,0,-5)
|
local p1 = vector.offset(p,-7,0,-7)
|
||||||
local p2 = vector.offset(p,-5,14,-5)
|
local p2 = vector.offset(p,7,14,7)
|
||||||
for _,n in pairs(minetest.find_nodes_in_area(p1,p2,{"group:wall"})) do
|
for _,n in pairs(minetest.find_nodes_in_area(p1,p2,{"group:wall"})) do
|
||||||
local def = minetest.registered_nodes[minetest.get_node(n).name:gsub("_%d+$","")]
|
local def = minetest.registered_nodes[minetest.get_node(n).name:gsub("_%d+$","")]
|
||||||
if def and def.on_construct then
|
if def and def.on_construct then
|
||||||
|
Loading…
Reference in New Issue
Block a user