all lava cools into obsidian
This commit is contained in:
parent
9f6825c4fb
commit
08d490429d
10
init.lua
10
init.lua
@ -166,3 +166,13 @@ if minetest.get_modpath("rangedweapons") then
|
||||
output = "rangedweapons:40mm"
|
||||
})
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user