From 8697b6b2a396cfdee39f2b0e8266c70d90a31ffc Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Wed, 26 Dec 2018 04:58:31 -0500 Subject: [PATCH] Check for light level six to spawn hostile mobs. --- mods/mobs/nodes.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/mobs/nodes.lua b/mods/mobs/nodes.lua index e7c8fa8..f9f4d22 100644 --- a/mods/mobs/nodes.lua +++ b/mods/mobs/nodes.lua @@ -53,7 +53,8 @@ minetest.register_node("mobs:spawner", { local night = tod > 19000 or tod < 06000 local protection = minetest.find_node_near(pos, 13, {"protector:protect", "protector:protect2"}, true) - if not protection and (biome == "underground" or night) then + if not protection and (biome == "underground" or night) and + minetest.get_node_light(pos) < 6 then local mobs_to_insert = { "mobs:dungeon_master", "mobs:oerkki",