Spawn monsters/treasure by depth.

This commit is contained in:
Duane 2016-08-03 02:55:30 -05:00
parent 0405fb8448
commit 3fe63e8fd8
4 changed files with 94 additions and 38 deletions

View file

@ -9,7 +9,7 @@ function minetest.is_protected(pos, name)
end
local node = get_node_or_nil(pos)
if node and get_item_group(node.name, "fortress") ~= 0 then
if node and get_item_group(node.name, "dungeon") ~= 0 then
return true
end
if node and node.name == 'fun_caves:translocator' and (name == '' or not minetest.get_player_by_name(name)) then