NoteBlockAPI

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

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


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories