Add watering sound

This commit is contained in:
Wuzzy 2016-10-29 16:20:25 +02:00
parent 7f4c309130
commit 2f3b8566b0
3 changed files with 3 additions and 1 deletions

@ -40,4 +40,5 @@ There are only optional dependencies:
However, it recommended to use at least one of these mods, otherwise you have nothing to use the watering can on. ;-) However, it recommended to use at least one of these mods, otherwise you have nothing to use the watering can on. ;-)
## License
WTFPL.

@ -50,6 +50,7 @@ minetest.register_tool("wateringcan:wateringcan_water", {
end end
if watered then if watered then
minetest.sound_play({name = "wateringcan_pour", gain = 0.25, max_hear_distance = 10}, { pos = user:getpos() })
wear = itemstack:get_wear() wear = itemstack:get_wear()
wear = wear + 2849 -- 24 uses wear = wear + 2849 -- 24 uses
if(wear > 65535) then if(wear > 65535) then

Binary file not shown.