mirror of
https://codeberg.org/tenplus1/mobs_monster.git
synced 2025-07-04 17:30:21 +02:00
Added spawn.lua check for custom mob spawns, example file included
This commit is contained in:
@ -178,6 +178,7 @@ mobs:register_mob("mobs_monster:spider", {
|
||||
})
|
||||
|
||||
|
||||
if not mobs.custom_spawn_monster then
|
||||
-- above ground spawn
|
||||
mobs:spawn({
|
||||
name = "mobs_monster:spider",
|
||||
@ -204,6 +205,7 @@ mobs:spawn({
|
||||
min_height = -31000,
|
||||
max_height = -40,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
mobs:register_egg("mobs_monster:spider", S("Spider"), "mobs_cobweb.png", 1)
|
||||
|
Reference in New Issue
Block a user