Added spawn.lua check for custom mob spawns, example file included

This commit is contained in:
tenplus1
2020-09-21 10:03:08 +01:00
parent 144c851207
commit 4018a5c8e8
11 changed files with 224 additions and 13 deletions

View File

@ -89,6 +89,7 @@ mobs:register_mob("mobs_monster:lava_flan", {
})
if not mobs.custom_spawn_monster then
mobs:spawn({
name = "mobs_monster:lava_flan",
nodes = {"default:lava_source"},
@ -96,6 +97,7 @@ mobs:spawn({
active_object_count = 1,
max_height = 0,
})
end
mobs:register_egg("mobs_monster:lava_flan", S("Lava Flan"), "default_lava.png", 1)