Add water node sounds

This commit is contained in:
Wuzzy 2024-08-11 12:30:33 +02:00
parent 58da52a9c9
commit fd8248c908
9 changed files with 16 additions and 1 deletions

View File

@ -122,7 +122,7 @@ All levels by Wuzzy.
- `lzr_laser_barricade_break.ogg`:
- By kevinkace <https://freesound.org/people/kevinkace/sounds/66780/>
- License: CC0
- `lzr_sounds_footstep_stone.*.ogg`, `default_dirt_footstep.*.ogg`, `lzr_sounds_footstep_leaves.*.ogg`, `lzr_sounds_dug_grass.*.ogg`:
- `lzr_sounds_footstep_stone.*.ogg`, `default_dirt_footstep.*.ogg`, `lzr_sounds_footstep_leaves.*.ogg`, `lzr_sounds_dug_grass.*.ogg`, `lzr_sounds_dug_water.*.ogg`, `lzr_sounds_footstep_water.*.ogg`, `lzr_sounds_place_water.*.ogg`:
- by Wuzzy
- License: MIT
- `lzr_protection_inventory_full.ogg`:

View File

@ -225,6 +225,7 @@ minetest.register_node("lzr_core:water_source", {
liquids_pointable = true,
post_effect_color = {a = 128, r = 17, g = 69, b = 135},
groups = {water = 3, liquid = 3},
sounds = lzr_sounds.node_sound_water_defaults(),
})
-- Mostly the same as lzr_core:water_source except it waves.
@ -271,6 +272,7 @@ minetest.register_node("lzr_core:ocean_water_source", {
-- More opaque than the normal water
post_effect_color = {a = 192, r = 17, g = 69, b = 135},
groups = {water = 3, liquid = 3, laser_incompatible = 1, not_in_creative_inventory = 1},
sounds = lzr_sounds.node_sound_water_defaults(),
})
-- For invisible level borders

View File

@ -99,3 +99,16 @@ function lzr_sounds.node_sound_metal_defaults(table)
lzr_sounds.node_sound_defaults(table)
return table
end
function lzr_sounds.node_sound_water_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name = "lzr_sounds_footstep_water", gain = 1.0}
table.dug = table.dug or
{name = "lzr_sounds_dug_water", gain = 0.9}
table.place = table.place or
{name = "lzr_sounds_place_water", gain = 0.3}
lzr_sounds.node_sound_defaults(table)
return table
end

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.