From 5060d31d590a17a2bbab95cdf5eab9f32d8b500b Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 25 Apr 2023 10:00:02 +0100 Subject: [PATCH] increase sheep spawn chance when ethereal active --- sheep.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sheep.lua b/sheep.lua index e97e936..5611c26 100644 --- a/sheep.lua +++ b/sheep.lua @@ -367,13 +367,15 @@ if not mobs.custom_spawn_animal then local max_ht = 400 local spawn_on = {"default:dirt_with_grass", "ethereal:green_dirt"} + local mod_ethereal = minetest.get_modpath("ethereal") + local spawn_chance = mod_ethereal and 12000 or 8000 mobs:spawn({ name = "mobs_animal:sheep_white", nodes = spawn_on, min_light = 14, interval = 60, - chance = 8000, + chance = spawn_chance, min_height = 0, max_height = max_ht, day_toggle = true,