mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 14:55:12 +00:00
Grass sounds for grass path
This commit is contained in:
parent
edb2c81ecb
commit
0a2666c46e
2 changed files with 4 additions and 2 deletions
|
@ -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 a new issue