HomeJavaModsskNBS
skNBS

🎵 skNBS – Skript Addon for NoteBlockAPI

skNBS is a Skript addon that integrates the NoteBlockAPI with Skript, allowing you to load .nbs songs, create playlists, and control playback directly from Skript.

📦 Installation

  1. Install Skript on your Spigot/Paper server.
  2. Install NoteBlockAPI.
  3. Place the skNBS.jar into your /plugins folder.
  4. Restart the server.

📖 Syntax & Usage

🎶 Songs

Load an .nbs song from the plugins/NoteBlockAPI/songs folder: Use code with caution.

set {_song} to nbs song from "test.nbs"

📑 Playlists

Create a playlist from multiple songs: set {_song1} to nbs song from "intro.nbs" set {_song2} to nbs song from "loop.nbs" set {_playlist} to nbs playlist from {_song1} and {_song2}

▶️ Playback Types

⏯ Controls

Pause, resume, or stop a SongPlayer:

pause nbs {_player}
resume nbs {_player}
stop nbs {_player}

⏩ Seeking

Skip forwards or backwards in a song/playlist by seconds: forward 10 seconds in nbs {_player} # skip ahead 10s rewind 5 seconds in nbs {_player} # rewind 5s

⚠️ Notes

💡 Example Script

command /music:
    trigger:
        set {_song} to nbs song from "lobby.nbs"
        play radio nbs {_song} to player
        send "&aNow playing lobby music!" to player

command /dj:
    trigger:
        forward 30 seconds in nbs {_songplayer}

🛠 API Reference

Expressions

Effects

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more