From 0e5ecc7624cfcaae7b077394ed7074a5c517ef35 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 19 Feb 2017 20:41:35 +0100 Subject: [PATCH] Placement sound for: torches and redstone torches --- mods/ITEMS/mcl_torches/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ITEMS/mcl_torches/init.lua b/mods/ITEMS/mcl_torches/init.lua index 7a372a15eb..566dff09c3 100644 --- a/mods/ITEMS/mcl_torches/init.lua +++ b/mods/ITEMS/mcl_torches/init.lua @@ -74,6 +74,10 @@ mcl_torches.register_torch = function(substring, description, icon, mesh_floor, itemstack = minetest.item_place(fakestack, placer, pointed_thing, wdir) itemstack:set_name(itemstring) + local idef = itemstack:get_definition() + if idef.sounds and idef.sounds.place then + minetest.sound_play(idef.sounds.place, {pos=under, gain=1}) + end return itemstack end }