Add water place/dug sounds
This commit is contained in:
parent
b6367a523e
commit
2bcbfdeb04
@ -12,7 +12,12 @@ Modified from minetest_game:
|
||||
- model.lua
|
||||
- functions.lua
|
||||
|
||||
Sound license: CC0
|
||||
Sound licenses:
|
||||
* Water sounds:
|
||||
* Voxelands project <http://www.voxelands.com/> (CC BY-SA 3.0)
|
||||
* default_place_node_water.ogg
|
||||
* default_dug_water.ogg
|
||||
* All other sounds: CC0
|
||||
Texture license: CC BY-SA 4.0
|
||||
Model license: CC BY-SA 4.0
|
||||
Source license: LGPLv2.1
|
||||
|
@ -49,6 +49,7 @@ for b=1, #water_buckets do
|
||||
|
||||
if not above_nodedef.walkable then
|
||||
minetest.add_node(pos, {name = bucket[4]})
|
||||
minetest.sound_play({name="default_place_node_water", gain=1.0}, {pos=pos})
|
||||
end
|
||||
|
||||
return itemstack
|
||||
@ -89,6 +90,7 @@ minetest.register_craftitem(
|
||||
end
|
||||
end
|
||||
minetest.remove_node(pointed_thing.under)
|
||||
minetest.sound_play({name="default_dug_water", gain=1.0}, {pos=pointed_thing.pos})
|
||||
return itemstack
|
||||
end
|
||||
|
||||
|
@ -1170,7 +1170,7 @@ minetest.register_node(
|
||||
liquid_viscosity = default.WATER_VISC,
|
||||
post_effect_color = {a = 90, r = 40, g = 40, b = 100},
|
||||
groups = {water = 1, flowing_water = 1, liquid = 1, not_in_creative_inventory=1,},
|
||||
sounds = default.node_sound_liquid_defaults(),
|
||||
sounds = default.node_sound_water_defaults(),
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
@ -1200,7 +1200,7 @@ minetest.register_node(
|
||||
liquid_viscosity = default.WATER_VISC,
|
||||
post_effect_color = {a=90, r=40, g=40, b=100},
|
||||
groups = {water=1, liquid=1},
|
||||
sounds = default.node_sound_liquid_defaults(),
|
||||
sounds = default.node_sound_water_defaults(),
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
@ -1238,7 +1238,7 @@ minetest.register_node(
|
||||
liquid_range = 1,
|
||||
post_effect_color = {a=40, r=40, g=70, b=100},
|
||||
groups = {water=1, flowing_water = 1, river_water = 1, liquid=1, not_in_creative_inventory=1,},
|
||||
sounds = default.node_sound_liquid_defaults(),
|
||||
sounds = default.node_sound_water_defaults(),
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
@ -1270,7 +1270,7 @@ minetest.register_node(
|
||||
liquid_range = 1,
|
||||
post_effect_color = {a=40, r=40, g=70, b=100},
|
||||
groups = {water = 1, river_water = 1, liquid = 1},
|
||||
sounds = default.node_sound_liquid_defaults(),
|
||||
sounds = default.node_sound_water_defaults(),
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
@ -1308,7 +1308,7 @@ minetest.register_node(
|
||||
liquid_range = 2,
|
||||
post_effect_color = {a=220, r=50, g=40, b=70},
|
||||
groups = {water=1, flowing_water = 1, swamp_water = 1, liquid=1, not_in_creative_inventory=1,},
|
||||
sounds = default.node_sound_liquid_defaults(),
|
||||
sounds = default.node_sound_water_defaults(),
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
@ -1340,7 +1340,7 @@ minetest.register_node(
|
||||
liquid_range = 2,
|
||||
post_effect_color = {a=220, r=50, g=40, b=70},
|
||||
groups = {water = 1, swamp_water = 1, liquid = 1},
|
||||
sounds = default.node_sound_liquid_defaults(),
|
||||
sounds = default.node_sound_water_defaults(),
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
|
@ -105,10 +105,15 @@ function default.node_sound_snow_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
function default.node_sound_liquid_defaults(table)
|
||||
function default.node_sound_water_defaults(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
{name="default_liquid_footstep", gain=1.0}
|
||||
table.dug = table.dug or
|
||||
{name="default_dug_water", gain=1.0}
|
||||
table.place = table.place or
|
||||
{name="default_place_node_water", gain=1.0}
|
||||
default.node_sound_defaults(table)
|
||||
return table
|
||||
end
|
||||
|
||||
|
BIN
mods/default/sounds/default_dug_water.ogg
Normal file
BIN
mods/default/sounds/default_dug_water.ogg
Normal file
Binary file not shown.
BIN
mods/default/sounds/default_place_node_water.ogg
Normal file
BIN
mods/default/sounds/default_place_node_water.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user