MUSIC REGION PLUGIN
- - - - - - -
Plugin for creating regions that will play custom songs to players.
NOTE: THIS PLUGIN IS A WORK IN PROGRESS AND COMMANDS MAY CHANGE
Global Commands
"/music on|off" will turn on or off music for yourself
"/music play <song name>" will play that track for just you
"/music stop" will stop the music play command
Commands can only be used by players who have WorldEdit access
Create Region:
/music create <name> <song number> <weight>
Reload Regions + Reload Config:
/music reload
How to select Region
Do //wand to get wooden Axe
do //sel to make sure you don't have any selections
do //sel poly to set your selection to polygon 2D
OR
do a normal cube selection to select a 3D box
Left-click your starting point and then Right-Click to add points
Once all points are selected, run the create command
How to set song numbers and add sounds
The song number corresponds to a Minecraft sound effect, this song numbers are listed in the config.yml file:
- - - - - - -
Plugin for creating regions that will play custom songs to players.
NOTE: THIS PLUGIN IS A WORK IN PROGRESS AND COMMANDS MAY CHANGE
Global Commands
"/music on|off" will turn on or off music for yourself
"/music play <song name>" will play that track for just you
"/music stop" will stop the music play command
Commands can only be used by players who have WorldEdit access
Create Region:
/music create <name> <song number> <weight>
Reload Regions + Reload Config:
/music reload
How to select Region
Do //wand to get wooden Axe
do //sel to make sure you don't have any selections
do //sel poly to set your selection to polygon 2D
OR
do a normal cube selection to select a 3D box
Left-click your starting point and then Right-Click to add points
Once all points are selected, run the create command
How to set song numbers and add sounds
The song number corresponds to a Minecraft sound effect, this song numbers are listed in the config.yml file:
config.yml:
'0':
file: "MUSIC_MUSIC_SONG"
name: "Music Song"
link: "youtube.com"
loop: 100
composer: "Composer"
MINECRAFT_SOUND might be ..,
An uppercase Spigot Sound constant, e.g. MUSIC_DISC_CAT or
a lowercase namespaced custom sound, e.g. mcme:weathertop which must refer to a sound event defined in the Resource Pack (assets/<namespace>/sound.json).
-----------------------------------------------------------------------------------------------------------------------------
By setting the region song number to that number, in this case, 1, it will play that sound.
-----------------------------------------------------------------------------------------------------------------------------
The ''name" will be what shows up in the chat when music plays
-----------------------------------------------------------------------------------------------------------------------------
The "link" will be what shows up in chat for players to click on when music plays, if there is no link put "none"
-----------------------------------------------------------------------------------------------------------------------------
The "loop" is how many seconds until the song is looped, make sure this number is 10+ seconds more than the length of the song to account for lag.
-----------------------------------------------------------------------------------------------------------------------------
The composer will show up next to the name, giving credit to whoever wrote the song.