Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added more sounds to noteblocks, see the documentation on http://mese…
…cons.net for more information
  • Loading branch information
C1ffisme authored and Jeija committed Feb 4, 2015
1 parent 30468b0 commit 11cf727
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mesecons_noteblock/init.lua
Expand Up @@ -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
Expand All @@ -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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 11cf727

Please sign in to comment.