diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-24 11:10:28 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-24 11:10:28 +0200 |
commit | 06e93f8d9508a23e86751dfae2f6a7e550d8e1af (patch) | |
tree | 3e3a9a0dc78ee6c216b047304b53bfe1d3d3ce0e /games/mesetint | |
parent | 74780134f2825427bb0db3b370642d3512af5ecd (diff) | |
download | minetest-06e93f8d9508a23e86751dfae2f6a7e550d8e1af.tar.gz minetest-06e93f8d9508a23e86751dfae2f6a7e550d8e1af.tar.bz2 minetest-06e93f8d9508a23e86751dfae2f6a7e550d8e1af.zip |
Add sound.dig
Diffstat (limited to 'games/mesetint')
-rw-r--r-- | games/mesetint/mods/default/init.lua | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/games/mesetint/mods/default/init.lua b/games/mesetint/mods/default/init.lua index 042cb7cdf..8788b3810 100644 --- a/games/mesetint/mods/default/init.lua +++ b/games/mesetint/mods/default/init.lua @@ -656,8 +656,10 @@ function default.node_sound_sand_defaults(table) table = table or {} table.footstep = table.footstep or {name="default_grass_footstep", gain=0.25} + --table.dug = table.dug or + -- {name="default_dirt_break", gain=0.25} table.dug = table.dug or - {name="default_dirt_break", gain=0.25} + {name="", gain=0.25} default.node_sound_defaults(table) return table end @@ -674,6 +676,8 @@ function default.node_sound_leaves_defaults(table) table = table or {} table.footstep = table.footstep or {name="default_grass_footstep", gain=0.25} + table.dig = table.dig or + {name="default_dig_crumbly", gain=0.4} table.dug = table.dug or {name="", gain=1.0} default.node_sound_defaults(table) @@ -727,7 +731,7 @@ minetest.register_node("default:dirt_with_grass", { groups = {crumbly=3}, drop = 'default:dirt', sounds = default.node_sound_dirt_defaults({ - footstep = {name="default_grass_footstep", gain=0.5}, + footstep = {name="default_grass_footstep", gain=0.4}, }), }) @@ -738,7 +742,7 @@ minetest.register_node("default:dirt_with_grass_footsteps", { groups = {crumbly=3}, drop = 'default:dirt', sounds = default.node_sound_dirt_defaults({ - footstep = {name="default_grass_footstep", gain=0.5}, + footstep = {name="default_grass_footstep", gain=0.4}, }), }) @@ -763,8 +767,8 @@ minetest.register_node("default:gravel", { tile_images = {"default_gravel.png"}, is_ground_content = true, groups = {crumbly=2}, - sounds = default.node_sound_sand_defaults({ - footstep = {name="default_gravel_footstep", gain=0.5} + sounds = default.node_sound_dirt_defaults({ + footstep = {name="default_gravel_footstep", gain=0.45}, }), }) |