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

animals spawn near grass now (chance amended to suit)

This commit is contained in:
TenPlus1
2018-03-04 15:45:09 +00:00
parent f2699613e2
commit cbac52f407
7 changed files with 29 additions and 26 deletions

View File

@ -53,12 +53,20 @@ stepheight = 0.6,
})
local spawn_on = "default:dirt_with_grass"
if minetest.get_modpath("ethereal") then
spawn_on = "ethereal:grove_dirt"
end
mobs:spawn({
name = "mobs_animal:kitten",
nodes = {"default:dirt_with_grass", "ethereal:grove_dirt"},
nodes = {spawn_on},
neighbors = {"group:grass"},
min_light = 12,
chance = 22000,
min_height = 0,
chance = 10000, -- 22000
min_height = 5,
max_height = 200,
day_toggle = true,
})