forked from mtcontrib/mobs_animal
using mobs:spawn functions to spawn animals
This commit is contained in:
12
sheep.lua
12
sheep.lua
@ -177,9 +177,15 @@ for _, col in pairs(all_colours) do
|
||||
|
||||
end
|
||||
|
||||
mobs:register_spawn("mobs_animal:sheep_white",
|
||||
{"default:dirt_with_grass", "ethereal:green_dirt"}, 20, 10, 15000, 1, 31000, true)
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_animal:sheep_white",
|
||||
nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
|
||||
min_light = 10,
|
||||
chance = 15000,
|
||||
min_height = 0,
|
||||
max_height = 31000,
|
||||
day_toggle = true,
|
||||
})
|
||||
|
||||
-- compatibility
|
||||
mobs:alias_mob("mobs:sheep", "mobs_animal:sheep_white")
|
||||
|
Reference in New Issue
Block a user