all lava cools into obsidian

This commit is contained in:
Vitaliy Olkhin 2025-01-16 11:20:46 +05:00
parent 9f6825c4fb
commit 08d490429d

View File

@ -165,4 +165,14 @@ if minetest.get_modpath("rangedweapons") then
minetest.clear_craft({
output = "rangedweapons:40mm"
})
end
end
default.cool_lava = function(pos, node)
if node.name == "default:lava_source" then
minetest.set_node(pos, {name = "default:obsidian"})
else -- Lava flowing
minetest.set_node(pos, {name = "default:obsidian"})
end
minetest.sound_play("default_cool_lava",
{pos = pos, max_hear_distance = 16, gain = 0.2}, true)
end