mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2025-07-12 05:10:28 +02:00
Added spawn.lua check for custom mob spawning with example file
This commit is contained in:
@ -115,6 +115,7 @@ if minetest.get_modpath("ethereal") then
|
||||
spawn_on = "ethereal:grove_dirt"
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
mobs:spawn({
|
||||
name = "mobs_animal:kitten",
|
||||
nodes = {spawn_on},
|
||||
@ -126,6 +127,7 @@ mobs:spawn({
|
||||
max_height = 50,
|
||||
day_toggle = true,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
mobs:register_egg("mobs_animal:kitten", S("Kitten"), "mobs_kitten_inv.png", 0)
|
||||
|
Reference in New Issue
Block a user