diff --git a/mods/CORE/mcl_sounds/init.lua b/mods/CORE/mcl_sounds/init.lua index 1fe07dd98b..f7e14524df 100644 --- a/mods/CORE/mcl_sounds/init.lua +++ b/mods/CORE/mcl_sounds/init.lua @@ -52,6 +52,18 @@ function mcl_sounds.node_sound_sand_defaults(table) return table end +function mcl_sounds.node_sound_snow_defaults(table) + table = table or {} + table.footstep = table.footstep or + {name="default_snow_footstep", gain=0.5} + table.dug = table.dug or + {name="default_snow_footstep", gain=1.0} + table.place = table.place or + {name="default_place_node", gain=1.0} + mcl_sounds.node_sound_defaults(table) + return table +end + function mcl_sounds.node_sound_wood_defaults(table) table = table or {} table.footstep = table.footstep or diff --git a/mods/ITEMS/mcl_core/nodes.lua b/mods/ITEMS/mcl_core/nodes.lua index bba5d59186..012744a3f2 100644 --- a/mods/ITEMS/mcl_core/nodes.lua +++ b/mods/ITEMS/mcl_core/nodes.lua @@ -1418,9 +1418,7 @@ minetest.register_node("mcl_core:snow", { }, }, groups = {crumbly=3,falling_node=1,deco_block=1}, - sounds = mcl_sounds.node_sound_dirt_defaults({ - footstep = {name="default_grass_footstep", gain=0.4}, - }), + sounds = mcl_sounds.node_sound_snow_defaults(), drop = "mcl_throwing:snowball 2", }) @@ -1430,9 +1428,7 @@ minetest.register_node("mcl_core:snowblock", { is_ground_content = true, stack_max = 64, groups = {crumbly=3,building_block=1}, - sounds = mcl_sounds.node_sound_dirt_defaults({ - footstep = {name="default_grass_footstep", gain=0.4}, - }), + sounds = mcl_sounds.node_sound_snow_defaults(), drop = "mcl_throwing:snowball 4", })