Sueta

SkMusic

v2.0.0 (Updated Link)

Play NBS Songs with Skript

·Script

About this Addon

This addon allow you to play NoteBlockSongs with Skript. I've made this addon because existing addons that have this feature are not working in Minecraft 1.10.

This is my first addon and my first spigot plugin so be indulgent :)

This addon require the following plugin : NoteBlockApi

Documentation

Your songs must be placed in plugins/SkMusic

Effects

Play a nbs song to a given player

[skmusic|nbs] play [song|music] %string% to %player%

Stop playing a nbs song to a specific player

[skmusic|nbs] stop play[ing] [song|music] to %player%

Play a song to all players (Broadcast a Song)

[skmusic|nbs] broadcast [song|music] %string%

Stop playing a nbs song to all players (Stop the Broadcast of a Song)

[skmusic|nbs] stop broadcast[ing] [song|music]

Play a nbs song to all players in a certain radius arround a location

[skmusic|nbs] play [song|music] %string% to [all] players in radius %integer% arround [location] %location%

Set the volume of a player's song

[skmusic|nbs] set volume of [player] %player% to %integer%

Set the fade duration effect of a player's song

[skmusic|nbs] set fade duration of [player] %player% to %integer%
Conditions

Check if a song exist

[skmusic|nbs] (song|music) %string% exist
Expressions

Get the volume of a player's song

[skmusic|nbs] volume of [player] %player%
%player%['s] [music] volume

Get the fade duration of a player's song

[skmusic|nbs] fade duration of [player] %player%

Get the title of a player's song (as defined in the nbs file)

[skmusic|nbs] %player%['s] (song|music) (name|title)

Get the author of a player's song (as defined in the nbs file)

[skmusic|nbs] %player%['s] (song|music) author

Get the speed of a player's song (as defined in the nbs file)

[skmusic|nbs] %player%['s] (song|music) speed

Get the duration of a player's song (duration wil be returned in ticks)

[skmusic|nbs] %player%['s] (song|music) (length|duration)

Changelog

v2.0.0 : Recoded existing effects and many new effects, expressions and conditions
v1.2.0 : Per-player music control
v1.1.0 : Added expression to stop playing music
v1.0.0 : Initial release

Future

In the next version :

  • Get informations about songs that are not played
  • Stream and download nbs songs
  • Nbs songs database
  • ...

Found a bug? Contact me :)

Similar projects

Script →