mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Don't spawn the dragon in peaceful
and keep portal open
This commit is contained in:
parent
1060b5074c
commit
7f2f565946
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ mcl_structures.register_structure("end_exit_portal",{
|
||||||
modpath.."/schematics/mcl_structures_end_exit_portal.mts"
|
modpath.."/schematics/mcl_structures_end_exit_portal.mts"
|
||||||
},
|
},
|
||||||
after_place = function(pos,def,pr,blockseed)
|
after_place = function(pos,def,pr,blockseed)
|
||||||
|
if minetest.settings:get_bool("only_peaceful_mobs", false) then
|
||||||
|
return
|
||||||
|
end
|
||||||
local p1 = vector.offset(pos,-16,-16,-16)
|
local p1 = vector.offset(pos,-16,-16,-16)
|
||||||
local p2 = vector.offset(pos,16,21,16)
|
local p2 = vector.offset(pos,16,21,16)
|
||||||
minetest.emerge_area(p1,p2,function(blockpos, action, calls_remaining, param)
|
minetest.emerge_area(p1,p2,function(blockpos, action, calls_remaining, param)
|
||||||
|
|
Loading…
Reference in a new issue