mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
Don't spawn pilalgers *in* the ground
This commit is contained in:
parent
83f17fd9a7
commit
1a380da960
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user