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

13
cow.lua
View File

@ -101,18 +101,13 @@ mobs:register_mob("mobs_animal:cow", {
})
local spawn_on = "default:dirt_with_grass"
if minetest.get_modpath("ethereal") then
spawn_on = "ethereal:green_dirt"
end
mobs:spawn({
name = "mobs_animal:cow",
nodes = {spawn_on},
nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
neighbors = {"group:grass"},
min_light = 10,
chance = 15000,
min_height = 0,
chance = 5000, -- 15000
min_height = 5,
max_height = 200,
day_toggle = true,
})