Snow nodes make snow sounds
This commit is contained in:
parent
57813ba9bc
commit
563d537164
@ -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
|
||||
|
@ -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",
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user