forked from mtcontrib/mobs_animal
animals spawn near grass now (chance amended to suit)
This commit is contained in:
11
sheep.lua
11
sheep.lua
@ -189,17 +189,12 @@ stepheight = 0.6,
|
||||
end
|
||||
|
||||
|
||||
local spawn_on = "default:dirt_with_grass"
|
||||
|
||||
if minetest.get_modpath("ethereal") then
|
||||
spawn_on = "ethereal:green_dirt"
|
||||
end
|
||||
|
||||
mobs:spawn({
|
||||
name = "mobs_animal:sheep_white",
|
||||
nodes = {spawn_on},
|
||||
nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
|
||||
neighbors = {"group:grass"},
|
||||
min_light = 10,
|
||||
chance = 15000,
|
||||
chance = 5000, -- 15000
|
||||
min_height = 0,
|
||||
max_height = 200,
|
||||
day_toggle = true,
|
||||
|
Reference in New Issue
Block a user