erha8 Posted March 16, 2023 Share Posted March 16, 2023 I recently found out how to play NoteBlockAPI songs (.nbs files) through skript, and it wasn't really easy, nor any tutorials about it. So thought I would share how you do it with you guys. Versions tested: 1.18.2 requirements: Skript, Skript-reflect, NoteBlockAPI command /playsong: permission: op trigger: set {_file2} to NBSDecoder.parse(new File("plugins/Songs/YourSongNameHere.nbs")) set {_song} to New RadioSongPlayer({_file2}) {_song}.setAutoDestroy(true) {_song}.addPlayer(player) {_song}.setPlaying(true) How to use: step 1: download all of the plugins listed above. step 2: Go into the plugins folder and create a new folder called "Songs" step: 3 Put the songs you want inside of that folder.( It has to be a .nbs file) How to create a .nbs file song: https://opennbs.org/ step 4: add the skript. step 5: in the line " set {_file2} to NBSDecoder.parse(new File("plugins/Songs/YourSongNameHere.nbs")) " edit YourSongNameHere to the name of the song you put inside the song folder step 6: Reload the skript, do /playsong, enjoy. 1 Link to comment Share on other sites More sharing options...
_Carl_the_NPC_ Posted March 17, 2023 Share Posted March 17, 2023 nice pfp Link to comment Share on other sites More sharing options...
erha8 Posted March 17, 2023 Author Share Posted March 17, 2023 Thanks, hehe. Link to comment Share on other sites More sharing options...
Schwein Posted March 10 Share Posted March 10 what did you have to import? Link to comment Share on other sites More sharing options...
3TSV Posted April 4 Share Posted April 4 Wow really useful! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now