NoteBlockAPI 1.6.0(MC1.8+)

Play .nbs files as noteblock sounds

  1. koca2000
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    Contributors:
    xxmicloxx

    Play your favorite songs ingame!

    Do you want official player? Then use this: NoteBlockMusicPlayer

    Dev builds are available here

    The original author is xxmicloxx. You can find his thread here.
    For support use PM or join my Discord server.​

    Features
    • play .nbs files ingame as noteblock sounds
    • easy to use
    • uses multi threading
    • can play custom instruments via resource pack and pling
    Plugins that use NoteBlockAPI
    NoteBlockPlayer: play for certain or all players .nbs files
    Pl3xPager: get your attention by playing .nbs files
    McMusic: play .nbs files
    ServerMusic: play .nbs files with signs
    icJukeBox: song selector with a fancy chest-gui
    Dubstep Gun: use the power of Dupstep
    JoinMusik: play a .nbs file for players that join your server
    JukeBox
    ♪ Noteblock Worldguard ♪

    ColorfulMix - music in lobby and arena
    MusicBox
    BattleMusic - play music when you fight with monters
    AdvancedNBS

    Instruments from 1.12 and 1.14 on 1.8 - 1.13 servers
    By default they are simply skipped. You can enable them by using resource pack.

    How to get .nbs
    Download .nbs files
    You can simply download a few songs here:
    .nbs list or scroll down for another list

    Convert .midi to .nbs
    Use Minecraft Note Block Studio:
    https://github.com/HielkeMinecraft/OpenNoteBlockStudio/releases
    1. import your .midi file to Note Block Studio;
    2. save the file as .nbs file in your plugin folder

    How to use
    See wiki on Github


    GitHub (new)
    https://github.com/koca2000/NoteBlockAPI


    GitHub (original)
    https:github.com/xxmicloxx/NoteBlockAPI

    Donators
    Goldenflame2 - 10$ + 5€
    John2k4 - 5$


    If you like my updates please consider making a donation:
    [​IMG]
    I will be grateful for every donation and you will be listed here.

Recent Updates

  1. v1.6.0
  2. v1.5.0
  3. v1.4.4

Recent Reviews

  1. Panda_HXB
    Panda_HXB
    5/5,
    Version: 1.5.0(MC1.8+)
    It's a cool API plugin! Would you like to support 1.16 soon? I'm try to add new disc to my server.
  2. AnikaLinn
    AnikaLinn
    5/5,
    Version: 1.4.4(MC1.8+)
    Works like a charm. It is as simple as putting the .nbs file in your maven resources for your project and passing the InputStream into NBSDecoder.process(...) and you're set. I got this and immediately forked it thinking I would need to heavily modify it for my use case, but it already has everything I need from it- that is, multiple world support and anywhere in those worlds and being able to set it to repeat without an extra listener like other solutions. It took no more then 11 minutes (yes, you can look at the timestamps from when I forked it till when I commited the working code into the server plugin) to get a full note block track working and playing anywhere on the server from the time you login, and that is more then can be said for other solutions available right now. Thank you for providing this resource to the commit, it is much appreciated.
  3. Kostya_1313
    Kostya_1313
    1/5,
    Version: 1.4.4(MC1.8+)
    [21:35:39 WARN]: [NoteBlockAPI] Task #2161 for NoteBlockAPI v1.4.4 generated an exception
    java.lang.ArrayIndexOutOfBoundsException: 3
    at com.xxmicloxx.NoteBlockAPI.songplayer.RadioSongPlayer.playTick(RadioSongPlayer.java:63) ~[?:?]
    at fr.skytasul.music.utils.CustomSongPlayer.playTick(CustomSongPlayer.java:28) ~[?:?]
    at com.xxmicloxx.NoteBlockAPI.songplayer.SongPlayer.lambda$null$6(SongPlayer.java:402) ~[?:?]
    at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.2.jar:git-Paper-67]
    at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452) ~[patched_1.15.2.jar:git-Paper-67]
    at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1185) ~[patched_1.15.2.jar:git-Paper-67]
    at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:423) ~[patched_1.15.2.jar:git-Paper-67]
    at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1112) ~[patched_1.15.2.jar:git-Paper-67]
    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934) ~[patched_1.15.2.jar:git-Paper-67]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
    [21:35:39 WARN]: [NoteBlockAPI] Task #2167 for NoteBlockAPI v1.4.4 generated an exception
    java.lang.ArrayIndexOutOfBoundsException: 3
    at com.xxmicloxx.NoteBlockAPI.songplayer.RadioSongPlayer.playTick(RadioSongPlayer.java:63) ~[?:?]
    at fr.skytasul.music.utils.CustomSongPlayer.playTick(CustomSongPlayer.java:28) ~[?:?]
    at com.xxmicloxx.NoteBlockAPI.songplayer.SongPlayer.lambda$null$6(SongPlayer.java:402) ~[?:?]
    at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.2.jar:git-Paper-67]
    at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452) ~[patched_1.15.2.jar:git-Paper-67]
    at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1185) ~[patched_1.15.2.jar:git-Paper-67]
    at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:423) ~[patched_1.15.2.jar:git-Paper-67]
    at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1112) ~[patched_1.15.2.jar:git-Paper-67]
    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934) ~[patched_1.15.2.jar:git-Paper-67]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
    [21:35:40 WARN]: [NoteBlockAPI] Task #2170 for NoteBlockAPI v1.4.4 generated an exception
    java.lang.ArrayIndexOutOfBoundsException: 3
    at com.xxmicloxx.NoteBlockAPI.songplayer.RadioSongPlayer.playTick(RadioSongPlayer.java:63) ~[?:?]
    at fr.skytasul.music.utils.CustomSongPlayer.playTick(CustomSongPlayer.java:28) ~[?:?]
    at com.xxmicloxx.NoteBlockAPI.songplayer.SongPlayer.lambda$null$6(SongPlayer.java:402) ~[?:?]
    at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.2.jar:git-Paper-67]
    at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452) ~[patched_1.15.2.jar:git-Paper-67]
    at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1185) ~[patched_1.15.2.jar:git-Paper-67]
    at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:423) ~[patched_1.15.2.jar:git-Paper-67]
    at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1112) ~[patched_1.15.2.jar:git-Paper-67]
    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934) ~[patched_1.15.2.jar:git-Paper-67]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
    1. koca2000
      Author's Response
      Please don't use Reviews for issue reports. Rather use Issues on Github or contact me using PM. This way I am not able to help you as you haven't provided enough informations.
  4. Jose_95
    Jose_95
    5/5,
    Version: 1.4.4(MC1.8+)
    The plugin works very great with Denizen, gives no problems. I am not a developer, so I can't explain how great the actual API is, but it works very great with the plugins I used. Please update this to noteblock studio's version 4.6.0, theres been a lot of changes to .nbs files
  5. LouShunt55
    LouShunt55
    5/5,
    Version: 1.4.4(MC1.8+)
    Amazing Plugin ! Work great, and a complete documentation ! If you search for a API to load .nbs sound use this !
  6. Goldenflame2
    Goldenflame2
    5/5,
    Version: 1.4.4(MC1.8+)
    Amazing fun plugin! Allows us to play nbs files as music (together with our jukebox plugin). Also gives us brilliant vote rewards!
  7. jstnf
    jstnf
    5/5,
    Version: 1.4.4(MC1.8+)
    Great API that allows me to very easily implement custom music into my plugin. Author is attentive and helpful. +1
  8. rmellis
    rmellis
    5/5,
    Version: 1.4.2(MC1.8+)
    Great Resource, Very straightforward and easy to use API, works exactly as described with no issues at all, Definitely recommend!
  9. CrypticCabub
    CrypticCabub
    5/5,
    Version: 1.4.1(MC1.8+)
    Excellent plugin and developer is great -- quickly resolves bugs once contacted.
  10. Cocoa
    Cocoa
    5/5,
    Version: 1.2.5(MC1.8+)
    Excellent work! I am excited to use this to make more party-items, and rewards, for players. Thanks!