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) --- warthog.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'warthog.lua') diff --git a/warthog.lua b/warthog.lua index c3c198e..7215531 100644 --- a/warthog.lua +++ b/warthog.lua @@ -59,16 +59,19 @@ stepheight = 0.6, local spawn_on = "default:dirt_with_grass" +local spawn_by = {"group:grass"} if minetest.get_modpath("ethereal") then spawn_on = "ethereal:mushroom_dirt" + spawn_by = {"flowers:mushroom_brown", "flowers:mushroom_brown"} end mobs:spawn({ name = "mobs_animal:pumba", nodes = {spawn_on}, + neighbors = spawn_by, min_light = 10, - chance = 15000, + chance = 5000, -- 15000 min_height = 0, max_height = 200, day_toggle = true, -- cgit v1.2.3