by sapier » Sun Aug 12, 2012 09:34
Adding many mobs within relativly small distance is a special case normaly tried to avoid so you need to tell animals mod you relally inted to do it ;-). You should abuse the playerspawned property for your vombies to disable the population check. Otherwiese your vombies might get removed by themselfs periodicaly.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local justadded = minetest.env:add_entity(pos,"animal_vombie:vombie")
local newentity = justadded:get_luaentity()
if newentity ~= nil then
newentity.dynamic_data.spawning.player_spawned = true
newentity.dynamic_data.spawning.spawner = "some_dummy_name"
end
Last edited by
sapier on Sun Aug 12, 2012 09:36, edited 1 time in total.
DON'T mention coding style!
(c) sapier all rights reserved