Play music in your PocketMine-MP server using noteblocks!
This plugin is forked from SirGamer/ZMusicBox.
- The server software that you use must have working Noteblock functionality
- Noteblocks must be placed in the server
- Songs must be in .nbs format in order to be played
- Place the
.phar
file in your plugins folder of the server - Run the server
- Stop the server
- Place
.nbs
files in the/plugins/songs
directory of the server - Run the server
- Place a noteblock
/music <start|stop|next>
ZMusicBox is also accessible from its API:
- Get Instance (both of the following would work)
$instance = ZMusicBox\ZMusicBox::getInstance();
$instance = $this->getServer()->getPluginBase()->getPlugin("ZMusicBox");
- Switch to the Next Song
$instance->startTask();
- Stop the music
$instance->getScheduler()->cancelAllTasks();
- Select songs
$instance->selectSong("Exmaple song");
- Use Minecraft Note Block Studio to convert
.midi
files into.nbs
files. Website: https://opennbs.org/