diff --git a/init.lua b/init.lua index c12fef0..358806f 100644 --- a/init.lua +++ b/init.lua @@ -165,4 +165,14 @@ if minetest.get_modpath("rangedweapons") then minetest.clear_craft({ output = "rangedweapons:40mm" }) -end \ No newline at end of file +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