mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 14:53:16 -04:00
Add furnace sounds
This commit is contained in:
parent
176ddba176
commit
69c9b0acb6
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue