1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2025-07-23 18:40:25 +02:00

using mobs:spawn functions to spawn animals

This commit is contained in:
TenPlus1
2016-10-29 16:45:47 +01:00
parent 2c0b9f5357
commit 3776506b2f
8 changed files with 61 additions and 23 deletions

View File

@ -57,8 +57,6 @@ mobs:register_mob("mobs_animal:rat", {
]]
})
--mobs:register_spawn("mobs_animal:rat", {"default:stone"}, 20, 5, 15000, 2, 0)
local function rat_spawn(self, pos)
print (self:get_luaentity().name, pos.x, pos.y, pos.z)
end
@ -66,6 +64,8 @@ end
mobs:spawn({
name = "mobs_animal:rat",
nodes = {"default:stone"},
min_light = 3,
active_object_count = 2,
max_height = 0,
-- on_spawn = rat_spawn,
})