Allow hot cobble to be quenched.

This commit is contained in:
Duane 2016-07-05 09:28:11 -05:00
parent f693268c75
commit 14b38a868b
2 changed files with 18 additions and 1 deletions

View file

@ -262,6 +262,23 @@ end)
-- 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({
nodenames = {"fun_caves:hot_cobble",},
neighbors = {"group:water"},
interval = 1,
chance = 1,
catch_up = false,
action = function(...)
cool_cobble(...)
end,
})
-- Exploding fungal fruit
minetest.register_abm({
nodenames = {"fun_caves:fungal_tree_fruit"},