Placement sound for: torches and redstone torches

This commit is contained in:
Wuzzy 2017-02-19 20:41:35 +01:00
parent 3d2d31896f
commit 0e5ecc7624

View file

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