Improve initial mummy spawn

This commit is contained in:
Wuzzy
2019-08-25 01:52:12 +02:00
parent 4fde7b9091
commit 19c81a9b4f
2 changed files with 73 additions and 56 deletions

View File

@ -77,7 +77,11 @@ end
local function add_spawner(pos, mummy_offset)
minetest.set_node(pos, {name="tsm_pyramids:spawner_mummy"})
if not minetest.settings:get_bool("only_peaceful_mobs") then tsm_pyramids.spawn_mummy(vector.add(pos, mummy_offset),2) end
if not minetest.settings:get_bool("only_peaceful_mobs") then
for i=1,2 do
tsm_pyramids.attempt_mummy_spawn(pos, false)
end
end
end
local function can_replace(pos)