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) --- cow.lua | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'cow.lua') diff --git a/cow.lua b/cow.lua index 545be46..e5ae7c7 100644 --- a/cow.lua +++ b/cow.lua @@ -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, }) -- cgit v1.2.3