forked from Mirrorlandia_minetest/mod-sneeker
Run spawn function every 20 minutes
This commit is contained in:
parent
07d7745455
commit
299b12b5a4
@ -1,7 +1,13 @@
|
||||
|
||||
local time_sec = 1
|
||||
local time_min = time_sec * 60
|
||||
local time_hr = time_min * 60
|
||||
local time_day = time_hr * 24
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"default:dirt_with_grass","default:stone"},
|
||||
neighbors = {"air"},
|
||||
interval = 30,
|
||||
interval = time_min * 20, -- Run spawn function every 20 minutes
|
||||
chance = 9000,
|
||||
action = function(pos, node, _, active_object_count_wider)
|
||||
if active_object_count_wider > 5 then
|
||||
|
Loading…
Reference in New Issue
Block a user