From 1e7ea09713ddabab41387c45f7bb10049b31a7ac Mon Sep 17 00:00:00 2001 From: tchncs Date: Fri, 15 Jul 2016 19:06:35 +0200 Subject: [PATCH] default: flowing lava can cool down to basalt --- mods/default/functions.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mods/default/functions.lua b/mods/default/functions.lua index fc7c624a..ec39c7df 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -100,11 +100,16 @@ end -- Lavacooling -- +lavagen = { +"darkage:basalt", +"default:stone" +} + 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:stone"}) + else + minetest.set_node(pos, {name = lavagen[math.random(1,#lavagen)]}) end minetest.sound_play("default_cool_lava", {pos = pos, max_hear_distance = 16, gain = 0.25})