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)

View file

@ -22,7 +22,7 @@ minetest.register_node("mcl_core:water_flowing", {
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0}
},
},
sounds = mcl_sounds.node_sound_water_defaults(table),
sounds = mcl_sounds.node_sound_water_defaults(),
alpha = WATER_ALPHA,
paramtype = "light",
paramtype2 = "flowingliquid",
@ -66,7 +66,7 @@ Water interacts with lava in various ways:
backface_culling = false,
}
},
sounds = mcl_sounds.node_sound_water_defaults(table),
sounds = mcl_sounds.node_sound_water_defaults(),
alpha = WATER_ALPHA,
paramtype = "light",
walkable = false,
@ -111,6 +111,7 @@ minetest.register_node("mcl_core:lava_flowing", {
paramtype2 = "flowingliquid",
-- Real light level: 15 (but Minetest caps at 14)
light_source = 14,
sounds = mcl_sounds.node_sound_lava_defaults(),
walkable = false,
pointable = false,
diggable = false,
@ -160,6 +161,7 @@ Lava interacts with water various ways:
sunlight_propagates = true,
-- Real light level: 15 (but Minetest caps at 14)
light_source = 14,
sounds = mcl_sounds.node_sound_lava_defaults(),
walkable = false,
pointable = false,
diggable = false,