Added spawn.lua check for custom mob spawning with example file

This commit is contained in:
tenplus1
2020-09-21 09:48:45 +01:00
parent e8ccc6b3c1
commit 95c32cb4af
12 changed files with 249 additions and 17 deletions

View File

@ -46,6 +46,7 @@ mobs:register_mob("mobs_animal:bee", {
-- end,
})
if not mobs.custom_spawn_animal then
mobs:spawn({
name = "mobs_animal:bee",
nodes = {"group:flower"},
@ -56,6 +57,7 @@ mobs:spawn({
max_height = 200,
day_toggle = true,
})
end
mobs:register_egg("mobs_animal:bee", S("Bee"), "mobs_bee_inv.png")