1
0
Fork 0

Grass sounds for grass path

objects
Wuzzy 2017-02-06 19:29:11 +01:00
parent edb2c81ecb
commit 0a2666c46e
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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