forked from VoxeLibre/VoxeLibre
Grass sounds for grass path
This commit is contained in:
parent
edb2c81ecb
commit
0a2666c46e
|
@ -277,7 +277,9 @@ minetest.register_node("mcl_core:grass_path", {
|
|||
}
|
||||
},
|
||||
groups = { crumbly=3, not_in_creative_inventory=1, },
|
||||
sounds = mcl_core.node_sound_dirt_defaults(),
|
||||
sounds = mcl_core.node_sound_dirt_defaults({
|
||||
footstep = {name="default_grass_footstep", gain=0.4},
|
||||
}),
|
||||
})
|
||||
|
||||
-- TODO: Add particles
|
||||
|
|
|
@ -119,7 +119,7 @@ local make_grass_path = function(itemstack, placer, pointed_thing)
|
|||
local wear = math.ceil(65535 / uses)
|
||||
itemstack:add_wear(wear)
|
||||
end
|
||||
minetest.sound_play({name="default_dirt_footstep", gain=1.1}, {pos = above})
|
||||
minetest.sound_play({name="default_grass_footstep", gain=1}, {pos = above})
|
||||
minetest.swap_node(pointed_thing.under, {name="mcl_core:grass_path"})
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue