mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01: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, },
|
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
|
-- TODO: Add particles
|
||||||
|
|
|
@ -119,7 +119,7 @@ local make_grass_path = function(itemstack, placer, pointed_thing)
|
||||||
local wear = math.ceil(65535 / uses)
|
local wear = math.ceil(65535 / uses)
|
||||||
itemstack:add_wear(wear)
|
itemstack:add_wear(wear)
|
||||||
end
|
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"})
|
minetest.swap_node(pointed_thing.under, {name="mcl_core:grass_path"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue