Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1001 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 1001 Bytes

ZMusicBox

Play music in your server using noteblocks!

Requirements

  • The server software that you use must have working noteblock functionality (All current php server softwares)
  • Noteblocks must be placed in the server
  • Songs must be in .nbs format in order to be played

How to use

  1. Place the phar in your plugins folder of the server
  2. Run the server
  3. Stop the server
  4. Place .nbs files in the /plugins/songs directory of the server
  5. Run the server
  6. Place a noteblock

Commands

  • /music <start|stop|next>

API

ZMusicBox is also accessible from its API:

  • Switch to the Next Song
$this->ZMusicBox->StartNewTask();
  • Stop the music
$this->getServer()->ZMusicBox->getScheduler()->cancelTasks($this);

Other Information

  • Use Minecraft Note Block Studio to convert midi files into nbs files. Website: http://www.stuffbydavid.com/mcnbs
  • Please do not use this code nor these algorithms for other plugins