Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not commands then
- print("no commands, defaulting")
- commands = {}
- commands.execAsync = function() return 0 end
- end
- commands.noteblock = {}
- commands.ints = {
- [0] = "note.harp",
- [1] = "note.bd",
- [2] = "note.snare",
- [3] = "note.hat",
- [4] = "note.bassattack"
- }
- commands.noteblock.playNote = function(int, note)
- int = commands.ints[int]
- note = math.pow(2, (note-12) /12)
- commands.execAsync("playsound "..int.." @a ~ ~ ~ 1 "..note)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement