forked from VoxeLibre/VoxeLibre
Add lava place sound
This commit is contained in:
parent
e4ab20509f
commit
30517ecb98
|
@ -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,
|
(Note: Artists from the Voxelands project include: sdzen, darkrose, sapier,
|
||||||
Tom Peter, Telaron, juskiddink)
|
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):
|
Adam_N (CC0 1.0):
|
||||||
player_falling_damage.ogg
|
player_falling_damage.ogg
|
||||||
Source: <https://www.freesound.org/people/Adam_N/sounds/346692/>
|
Source: <https://www.freesound.org/people/Adam_N/sounds/346692/>
|
||||||
|
|
|
@ -135,6 +135,17 @@ function mcl_sounds.node_sound_water_defaults(table)
|
||||||
return table
|
return table
|
||||||
end
|
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
|
-- Player death sound
|
||||||
minetest.register_on_dieplayer(function(player)
|
minetest.register_on_dieplayer(function(player)
|
||||||
|
|
Binary file not shown.
|
@ -22,7 +22,7 @@ minetest.register_node("mcl_core:water_flowing", {
|
||||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=4.0}
|
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,
|
alpha = WATER_ALPHA,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "flowingliquid",
|
paramtype2 = "flowingliquid",
|
||||||
|
@ -66,7 +66,7 @@ Water interacts with lava in various ways:
|
||||||
backface_culling = false,
|
backface_culling = false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sounds = mcl_sounds.node_sound_water_defaults(table),
|
sounds = mcl_sounds.node_sound_water_defaults(),
|
||||||
alpha = WATER_ALPHA,
|
alpha = WATER_ALPHA,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
@ -111,6 +111,7 @@ minetest.register_node("mcl_core:lava_flowing", {
|
||||||
paramtype2 = "flowingliquid",
|
paramtype2 = "flowingliquid",
|
||||||
-- Real light level: 15 (but Minetest caps at 14)
|
-- Real light level: 15 (but Minetest caps at 14)
|
||||||
light_source = 14,
|
light_source = 14,
|
||||||
|
sounds = mcl_sounds.node_sound_lava_defaults(),
|
||||||
walkable = false,
|
walkable = false,
|
||||||
pointable = false,
|
pointable = false,
|
||||||
diggable = false,
|
diggable = false,
|
||||||
|
@ -160,6 +161,7 @@ Lava interacts with water various ways:
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
-- Real light level: 15 (but Minetest caps at 14)
|
-- Real light level: 15 (but Minetest caps at 14)
|
||||||
light_source = 14,
|
light_source = 14,
|
||||||
|
sounds = mcl_sounds.node_sound_lava_defaults(),
|
||||||
walkable = false,
|
walkable = false,
|
||||||
pointable = false,
|
pointable = false,
|
||||||
diggable = false,
|
diggable = false,
|
||||||
|
|
Loading…
Reference in New Issue