From 08d490429dd8df650586e589b73028c443e108b0 Mon Sep 17 00:00:00 2001 From: Vitaliy Olkhin Date: Thu, 16 Jan 2025 11:20:46 +0500 Subject: [PATCH] all lava cools into obsidian --- init.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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