1
0
Fork 0

Snow nodes make snow sounds

This commit is contained in:
Wuzzy 2017-02-19 19:48:16 +01:00
parent 57813ba9bc
commit 563d537164
2 changed files with 14 additions and 6 deletions

View File

@ -52,6 +52,18 @@ function mcl_sounds.node_sound_sand_defaults(table)
return table return table
end 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) function mcl_sounds.node_sound_wood_defaults(table)
table = table or {} table = table or {}
table.footstep = table.footstep or table.footstep = table.footstep or

View File

@ -1418,9 +1418,7 @@ minetest.register_node("mcl_core:snow", {
}, },
}, },
groups = {crumbly=3,falling_node=1,deco_block=1}, groups = {crumbly=3,falling_node=1,deco_block=1},
sounds = mcl_sounds.node_sound_dirt_defaults({ sounds = mcl_sounds.node_sound_snow_defaults(),
footstep = {name="default_grass_footstep", gain=0.4},
}),
drop = "mcl_throwing:snowball 2", drop = "mcl_throwing:snowball 2",
}) })
@ -1430,9 +1428,7 @@ minetest.register_node("mcl_core:snowblock", {
is_ground_content = true, is_ground_content = true,
stack_max = 64, stack_max = 64,
groups = {crumbly=3,building_block=1}, groups = {crumbly=3,building_block=1},
sounds = mcl_sounds.node_sound_dirt_defaults({ sounds = mcl_sounds.node_sound_snow_defaults(),
footstep = {name="default_grass_footstep", gain=0.4},
}),
drop = "mcl_throwing:snowball 4", drop = "mcl_throwing:snowball 4",
}) })