Don't spawn pilalgers *in* the ground

This commit is contained in:
cora 2022-10-10 14:49:49 +02:00
parent 83f17fd9a7
commit 1a380da960

View file

@ -69,12 +69,12 @@ mcl_structures.register_structure("pillager_outpost",{
if not peaceful then if not peaceful then
if sp and #sp > 0 then if sp and #sp > 0 then
for i=1,5 do for i=1,5 do
local pos = sp[pr:next(1,#sp)] local pos = vector.offset(sp[pr:next(1,#sp)],0,1,0)
if pos then if pos then
minetest.add_entity(pos,"mobs_mc:pillager") minetest.add_entity(pos,"mobs_mc:pillager")
end end
end end
local pos = sp[pr:next(1,#sp)] local pos = vector.offset(sp[pr:next(1,#sp)],0,1,0)
if pos then if pos then
minetest.add_entity(pos,"mobs_mc:evoker") minetest.add_entity(pos,"mobs_mc:evoker")
end end