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

@ -57,6 +57,7 @@ if minetest.get_modpath("ethereal") then
spawn_on = "ethereal:gray_dirt"
end
if not mobs.custom_spawn_monster then
mobs:spawn({
name = "mobs_monster:dirt_monster",
nodes = {spawn_on},
@ -67,6 +68,7 @@ mobs:spawn({
min_height = 0,
day_toggle = false,
})
end
mobs:register_egg("mobs_monster:dirt_monster", S("Dirt Monster"), "default_dirt.png", 1)