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
-
View User Profile
-
Send Message
Posted May 18, 2021API on Spigot: NoteBlockAPI | SpigotMC - High Performance Minecraft (maintained)
-
View User Profile
-
Send Message
Posted Mar 2, 2016@MasterKohaku
Are you serious read down....
-
View User Profile
-
Send Message
Posted Mar 2, 2016Please Update to 1.9 :'(
-
View User Profile
-
Send Message
Posted Mar 1, 2016@Undefined213
Version for MC 1.9+ download here: https:www.spigotmc.org/resources/noteblockapi.19287/
-
View User Profile
-
Send Message
Posted Mar 1, 2016Hello, will this be updated for 1.9?
-
View User Profile
-
Send Message
Posted Feb 24, 2016Hi there, is there a development build for 1.8.8 for this plugin? Thank you.
-
View User Profile
-
Send Message
Posted Oct 19, 2015@Daconway
keep getting the same crash. Seems to occur pretty randomly. Do you any fix for this?
-
View User Profile
-
Send Message
Posted Sep 10, 2015Am 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
-
View User Profile
-
Send Message
Posted Jun 1, 2015Please, in the next update, can add the possibility of play the notes out of range ???
this is awesome api :) 5 stars
-
View User Profile
-
Send Message
Posted May 28, 2015@McServerExpertDe
Bitte übernimm es und update es zu 1.8.3. Mit der jetzigen Version habe ich sofort 100% CPU Auslastung
-
View User Profile
-
Send Message
Posted May 28, 2015Please update this Plugin to 1.8.3 :/
-
View User Profile
-
Send Message
Posted May 11, 2015http://hastebin.com/ozivucotil.avrasm Keep getting this crash
-
View User Profile
-
Send Message
Posted Mar 28, 2015Do you two developers still update this plugin? If not, I would take over NoteBlockAPI :)
-
View User Profile
-
Send Message
Posted Mar 5, 2015Oh, a Queen fan ^^
-
View User Profile
-
Send Message
Posted Feb 9, 2015Does this plugin work for 1.8? If it doesn't could you update it?
-
View User Profile
-
Send Message
Posted Jan 1, 2015How do you get it so the song stops playing so another can play. Do they dont overlap
-
View User Profile
-
Send Message
Posted Dec 30, 2014I keep getting that its a unknown dependency
-
View User Profile
-
Send Message
Posted Dec 27, 2014@LucasRoxMinecraft
There isn't suppose to be a config file...
-
View User Profile
-
Send Message
Posted Dec 23, 2014Since I can't find a "setSpeed()" method, is there a way to change the songs speed?
-
View User Profile
-
Send Message
Posted Nov 26, 2014Hi 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?