diff --git a/mods/CORE/mcl_sounds/README.txt b/mods/CORE/mcl_sounds/README.txt index 7dcab32d8..54eeab60e 100644 --- a/mods/CORE/mcl_sounds/README.txt +++ b/mods/CORE/mcl_sounds/README.txt @@ -75,6 +75,10 @@ Voxelands project (CC BY-SA 3.0) (Note: Artists from the Voxelands project include: sdzen, darkrose, sapier, Tom Peter, Telaron, juskiddink) +Michel Baradari (CC BY 3.0) + + default_place_node_lava.ogg + Adam_N (CC0 1.0): player_falling_damage.ogg Source: diff --git a/mods/CORE/mcl_sounds/init.lua b/mods/CORE/mcl_sounds/init.lua index a428e3326..cd3ca96f8 100644 --- a/mods/CORE/mcl_sounds/init.lua +++ b/mods/CORE/mcl_sounds/init.lua @@ -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) diff --git a/mods/CORE/mcl_sounds/sounds/default_place_node_lava.ogg b/mods/CORE/mcl_sounds/sounds/default_place_node_lava.ogg new file mode 100644 index 000000000..2ef7ff6a1 Binary files /dev/null and b/mods/CORE/mcl_sounds/sounds/default_place_node_lava.ogg differ diff --git a/mods/ITEMS/mcl_core/nodes_liquid.lua b/mods/ITEMS/mcl_core/nodes_liquid.lua index 2fa6c3866..584610935 100644 --- a/mods/ITEMS/mcl_core/nodes_liquid.lua +++ b/mods/ITEMS/mcl_core/nodes_liquid.lua @@ -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,