Add traps to dungeons.
This commit is contained in:
parent
cbf8994755
commit
2f9d41c11e
3 changed files with 19 additions and 8 deletions
6
abms.lua
6
abms.lua
|
@ -391,11 +391,11 @@ minetest.register_abm({
|
|||
|
||||
minetest.register_abm({
|
||||
nodenames = {"fun_caves:dungeon_floor_1"},
|
||||
interval = 20 * time_factor,
|
||||
interval = 10 * time_factor,
|
||||
chance = 250,
|
||||
catch_up = false,
|
||||
action = function(pos, node, aoc, active_object_count_wider)
|
||||
if not (pos and node) or active_object_count_wider > 10 then
|
||||
if not (pos and node) or active_object_count_wider > 5 then
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -453,7 +453,7 @@ minetest.register_abm({
|
|||
minetest.register_abm({
|
||||
nodenames = {"fun_caves:dungeon_floor_1"},
|
||||
interval = 20 * time_factor,
|
||||
chance = 1000,
|
||||
chance = 500,
|
||||
catch_up = false,
|
||||
action = function(pos, node)
|
||||
if not (pos and node) then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue