Add lava place sound

This commit is contained in:
Wuzzy 2018-01-12 02:26:12 +01:00
parent e4ab20509f
commit 30517ecb98
4 changed files with 19 additions and 2 deletions

View file

@ -75,6 +75,10 @@ Voxelands project <http://www.voxelands.com/> (CC BY-SA 3.0)
(Note: Artists from the Voxelands project include: sdzen, darkrose, sapier,
Tom Peter, Telaron, juskiddink)
Michel Baradari <https://opengameart.org/content/lava-splash> (CC BY 3.0)
default_place_node_lava.ogg
Adam_N (CC0 1.0):
player_falling_damage.ogg
Source: <https://www.freesound.org/people/Adam_N/sounds/346692/>

View file

@ -135,6 +135,17 @@ function mcl_sounds.node_sound_water_defaults(table)
return table
end
function mcl_sounds.node_sound_lava_defaults(table)
table = table or {}
-- TODO: Footstep
table.place = table.place or
{name = "default_place_node_lava", gain = 1.0}
table.dug = table.dug or
{name = "default_place_node_lava", gain = 1.0}
-- TODO: Different dug sound
mcl_sounds.node_sound_defaults(table)
return table
end
-- Player death sound
minetest.register_on_dieplayer(function(player)