Add furnace sounds

This commit is contained in:
An0n3m0us 2020-01-27 23:21:22 +00:00
parent 176ddba176
commit 69c9b0acb6

View file

@ -154,6 +154,8 @@ local function furnace_node_timer(pos, elapsed)
else else
dst_full = true dst_full = true
end end
-- Play cooling sound
minetest.sound_play("default_cool_lava", {pos = pos, max_hear_distance = 16, gain = 0.05})
else else
-- Item could not be cooked: probably missing fuel -- Item could not be cooked: probably missing fuel
update = true update = true
@ -251,6 +253,8 @@ local function furnace_node_timer(pos, elapsed)
local infotext local infotext
if active then if active then
infotext = S("Furnace active") infotext = S("Furnace active")
-- Play sound while the furnace is active
minetest.sound_play("fire_fire", {pos = pos, max_hear_distance = 16, gain = 0.1})
else else
infotext = S("Furnace inactive") infotext = S("Furnace inactive")
end end