1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2025-07-26 12:00:21 +02:00

using mobs:spawn functions to spawn animals

This commit is contained in:
TenPlus1
2016-10-29 16:45:47 +01:00
parent 2c0b9f5357
commit 3776506b2f
8 changed files with 61 additions and 23 deletions

11
cow.lua
View File

@ -95,8 +95,15 @@ mobs:register_mob("mobs_animal:cow", {
end,
})
mobs:register_spawn("mobs_animal:cow",
{"default:dirt_with_grass", "ethereal:green_dirt"}, 20, 10, 15000, 1, 31000, true)
mobs:spawn({
name = "mobs_animal:cow",
nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
min_light = 10,
chance = 15000,
min_height = 0,
max_height = 31000,
day_toggle = true,
})
mobs:register_egg("mobs_animal:cow", S("Cow"), "default_grass.png", 1)