Reduce hot cobble abms.

They're taking way too much time.
This commit is contained in:
Duane 2016-07-08 22:06:32 -05:00
parent fdc3a6ed19
commit d1fda5aa30

View file

@ -262,20 +262,16 @@ end)
-- destruction -- destruction
------------------------------------------------------------ ------------------------------------------------------------
local function cool_cobble(pos, node)
minetest.set_node(pos, {name = "default:cobble"})
minetest.sound_play("default_cool_lava",
{pos = pos, max_hear_distance = 16, gain = 0.25})
end
minetest.register_abm({ minetest.register_abm({
nodenames = {"fun_caves:hot_cobble",}, nodenames = {"fun_caves:hot_cobble",},
neighbors = {"group:water"}, neighbors = {"group:water"},
interval = 1, interval = 10,
chance = 1, chance = 10,
catch_up = false, catch_up = false,
action = function(...) action = function(pos, node)
cool_cobble(...) minetest.set_node(pos, {name = "default:cobble"})
minetest.sound_play("default_cool_lava",
{pos = pos, max_hear_distance = 16, gain = 0.25})
end, end,
}) })