[creeper] spawn.lua: Try to reduce the spawn interval to every 20

minutes.
master
AntumDeluge 2016-09-03 13:16:56 -07:00
parent a8b5e645db
commit d712a51191
1 changed files with 8 additions and 2 deletions

View File

@ -1,8 +1,14 @@
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({ minetest.register_abm({
nodenames = {"default:dirt_with_grass","default:stone"}, nodenames = {"default:dirt_with_grass","default:stone"},
neighbors = {"air"}, neighbors = {"air"},
interval = 600, interval = time_min * 20, -- Run spawn function every 20 minutes
chance = 500, chance = 9000,
action = function(pos, node, _, active_object_count_wider) action = function(pos, node, _, active_object_count_wider)
if active_object_count_wider > 5 then if active_object_count_wider > 5 then
return return