NoteBlockAPI
NoteBlockAPI
NoteBlockAPI - play .nbs files as noteblock sounds
Play your favorite songs ingame!
Features
- play .nbs files ingame as noteblock sounds
- easy to use
- uses multi threading
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
Bamradio: 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
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:
http://www.stuffbydavid.com/mcnbs
1. import your .midi file to Note Block Studio;
2. save the file as .nbs file in your plugin folder
How to use (since version 1.1.0)
Step 1/2:
add this line to your plugin.yml:
depend: [NoteBlockAPI]
Step 1:
Parse a .nbs file
Song s = NBSDecoder.parse(new File(getDataFolder(), "Song.nbs")); or Song s = NBSDecoder.parse(new File("/plugins/myplugin/Song.nbs"));
Step 2:
Create a player for the song
SongPlayer sp = new RadioSongPlayer(s);
Step 3:
define if the song should end when no one listens to it
sp.setAutoDestroy(true);
Step 4:
Add players to Song
sp.addPlayer(e.getPlayer());
Step 5:
Play song
sp.setPlaying(true);
GitHub
Contribute now and help us to update and improve NoteBlockAPI!
https:github.com/xxmicloxx/NoteBlockAPI
API on Spigot: NoteBlockAPI | SpigotMC - High Performance Minecraft (maintained)
@MasterKohaku
Are you serious read down....
Please Update to 1.9 :'(
@Undefined213
Version for MC 1.9+ download here: https:www.spigotmc.org/resources/noteblockapi.19287/
Hello, will this be updated for 1.9?
Hi there, is there a development build for 1.8.8 for this plugin? Thank you.
@Daconway
keep getting the same crash. Seems to occur pretty randomly. Do you any fix for this?
Am I allowed to use this source? And if I am, may I release the source, or only use it private? I read the licence, but can't find an answer, any help would be apriciated =D
Please, in the next update, can add the possibility of play the notes out of range ???
this is awesome api :) 5 stars
@McServerExpertDe
Bitte übernimm es und update es zu 1.8.3. Mit der jetzigen Version habe ich sofort 100% CPU Auslastung
Please update this Plugin to 1.8.3 :/
http://hastebin.com/ozivucotil.avrasm Keep getting this crash
Do you two developers still update this plugin? If not, I would take over NoteBlockAPI :)
Oh, a Queen fan ^^
Does this plugin work for 1.8? If it doesn't could you update it?
How do you get it so the song stops playing so another can play. Do they dont overlap
I keep getting that its a unknown dependency
@LucasRoxMinecraft
There isn't suppose to be a config file...
Since I can't find a "setSpeed()" method, is there a way to change the songs speed?
Hi there,
I'm quite amazed that you have no problems calling the Bukkit API from another thread than the synchronized one. Did you make sure all those functions are thread safe?