Add sound for jewelling

This commit is contained in:
Wuzzy 2019-09-21 21:12:33 +02:00
parent 2f0320d2ba
commit ab5ed60d31
3 changed files with 7 additions and 2 deletions

View File

@ -4,5 +4,7 @@ By Kaadmy
Adds tools with different stats via a Jeweler's Workbench.
Asset license: CC BY-SA 4.0
Source license: LGPLv2.1
Media license: CC BY-SA 4.0
* jewels_jewelling_a_tool.ogg: InspectorJ, CC BY 3.0 <https://freesound.org/people/InspectorJ/sounds/354140/>
Source code license: LGPLv2.1

View File

@ -222,6 +222,9 @@ minetest.register_node(
itemstack:take_item()
end
minetest.sound_play({name="jewels_jewelling_a_tool"}, {gain=0.8, pos=pos, max_hear_distance=8})
-- TODO: Graphical effect
achievements.trigger_achievement(player, "jeweler")
achievements.trigger_achievement(player, "master_jeweler")
end

Binary file not shown.