minetest.register_abm{ label = "soil burning", nodenames = {"group:soil"}, neighbors = {"default:lava_source", "default:lava_flowing"}, interval = 10, chance = 5, action = function(pos) minetest.set_node(pos, {name = "default:sand"}) minetest.check_for_falling(pos) end, } minetest.register_abm{ label = "ore burning", nodenames = {"default:stone_with_coal", "default:stone_with_diamond"}, neighbors = {"default:lava_source", "default:lava_flowing"}, interval = 10, chance = 5, action = function(pos) minetest.set_node(pos, {name = "default:cobble"}) end, }