forked from mtcontrib/mobs_animal
using mobs:spawn functions to spawn animals
This commit is contained in:
11
warthog.lua
11
warthog.lua
@ -55,8 +55,15 @@ mobs:register_mob("mobs_animal:pumba", {
|
||||
end,
|
||||
})
|
||||
|
||||
mobs:register_spawn("mobs_animal:pumba",
|
||||
{"ethereal:mushroom_dirt", "default:dirt_with_dry_grass"}, 20, 10, 15000, 1, 31000, true)
|
||||
mobs:spawn({
|
||||
name = "mobs_animal:pumba",
|
||||
nodes = {"default:dirt_with_dry_grass", "ethereal:mushroom_dirt"},
|
||||
min_light = 10,
|
||||
chance = 15000,
|
||||
min_height = 0,
|
||||
max_height = 31000,
|
||||
day_toggle = true,
|
||||
})
|
||||
|
||||
mobs:register_egg("mobs_animal:pumba", S("Warthog"), "wool_pink.png", 1)
|
||||
|
||||
|
Reference in New Issue
Block a user