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
Hey I want this but, I have no clue how to "parse the .nbs file". Tutorial please.
can someone make a simpler way to do this? or maybe even a tutorial song
OMG this couldn't have come out at a better time! This is going to solve a HUGE hurdle in one of my plugins! I'll definitely be using this! Thanks so much! ^_^
Edit: Do you have a maven repo so I can include into my plugin's pom.xml?
Edit2: Also, can you add a config.yml with a setting to turn off the console debug spam? Thanks! ^_^
Edit3: Pl3xPager v0.0.2 now uses this plugin as a softdepend! Feel free to add it to list of plugins that use this! ;)
AWESOME!
This is amazing! Thank you VERY much, sir! :D
@MiniDigger
jea ;D wait a moment, i send you a pm
Sweet, sounds awesome!
If you need another plugin developer, I'd be happy to contribute some code.
nice idea! is there a little pre-release for me? :D would be nice