Where are the rats?

master
James Stevenson 2018-12-26 05:16:35 -05:00
parent 8697b6b2a3
commit 7c37b939b6
1 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ minetest.register_node("mobs:spawner", {
end end
end end
local mobs = { local mobs = {
"mobs:rat",
"mobs:rat", "mobs:rat",
"mobs:npc", "mobs:npc",
} }
@ -54,7 +55,7 @@ minetest.register_node("mobs:spawner", {
local protection = minetest.find_node_near(pos, 13, local protection = minetest.find_node_near(pos, 13,
{"protector:protect", "protector:protect2"}, true) {"protector:protect", "protector:protect2"}, true)
if not protection and (biome == "underground" or night) and if not protection and (biome == "underground" or night) and
minetest.get_node_light(pos) < 6 then minetest.get_node_light(pos) < 7 then
local mobs_to_insert = { local mobs_to_insert = {
"mobs:dungeon_master", "mobs:dungeon_master",
"mobs:oerkki", "mobs:oerkki",