From cbac52f407614e1ba99b40f3feec5dcfe35ad0b7 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 4 Mar 2018 15:45:09 +0000 Subject: animals spawn near grass now (chance amended to suit) --- sheep.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sheep.lua') diff --git a/sheep.lua b/sheep.lua index 2da35d1..7335cd3 100644 --- a/sheep.lua +++ b/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, -- cgit v1.2.3