illuna/hotstone.lua

22 lines
365 B
Lua

-- TODO: make it a timer
--
minetest.register_abm({
label = "Illuna Hotstone",
nodenames = {
"default:stone"
},
neighbors = {
"default:lava_source"
},
interval = 5,
chance = 4,
catch_up = false,
action = function(pos, node)
if node.name == "default:stone" then
minetest.swap_node(pos, {name = "illuna:hotstone"})
end
nodeupdate(pos)
end,
})