From 11cf727bfbe71874a5f5c77aa83ae4145754f98c Mon Sep 17 00:00:00 2001 From: C1ff Date: Tue, 3 Feb 2015 12:48:12 -0600 Subject: Added more sounds to noteblocks, see the documentation on http://mesecons.net for more information --- mesecons_noteblock/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mesecons_noteblock/init.lua') diff --git a/mesecons_noteblock/init.lua b/mesecons_noteblock/init.lua index d63b93e..6321882 100644 --- a/mesecons_noteblock/init.lua +++ b/mesecons_noteblock/init.lua @@ -61,9 +61,15 @@ mesecon.noteblock_play = function (pos, param2) if block_below_name == "default:glass" then soundname="mesecons_noteblock_hihat" end + if block_below_name == "default:steelblock" then + soundname=soundname.."2" -- Go up an octave. + end if block_below_name == "default:stone" then soundname="mesecons_noteblock_kick" end + if block_below_name == "default:lava_source" then + soundname="fire_large" + end if block_below_name == "default:chest" then soundname="mesecons_noteblock_snare" end @@ -73,6 +79,9 @@ mesecon.noteblock_play = function (pos, param2) if block_below_name == "default:wood" then soundname="mesecons_noteblock_litecrash" end + if block_below_name == "default:coalblock" then + soundname="tnt_explode" + end minetest.sound_play(soundname, {pos = pos, gain = 1.0, max_hear_distance = 32,}) end -- cgit v1.2.3