Nota Mod brings the NoteBlock API from Spigot over to Fabric so you can play custom .nbs music files as note block sounds in your world. This library mod includes three different song player types: RadioSongPlayer, PositionSongPlayer, and EntitySongPlayer. You can play music globally for everyone, at a specific block location, or attach the audio to a moving mob or player within a set hearing distance. It works on the server side only or in singleplayer worlds.

Nota Mod

Features:

  • NoteBlock API Port: Brings the Spigot NoteBlock API to Fabric, letting mods load and play .nbs files using in-game note block sounds.
  • Playlist System: Lets you load multiple .nbs song files with NBSDecoder.parse and group them together into a single Playlist.
  • Works purely on the server side or inside singleplayer worlds.
  • Supports custom .nbs files downloaded online, converted from .midi files, or created from scratch using Note Block Studio.

SongPlayer Types:

  • RadioSongPlayer: Plays a loaded song for all added players no matter where they are in the world.
  • PositionSongPlayer: Plays a song at a set block coordinate (BlockPos) for added players within a specific block range (default distance is 16 blocks).
  • EntitySongPlayer: Attaches the music to a specific mob or player and plays it for added players within a set hearing range (default distance is 16 blocks).

Configuration:

Add the Modrinth repository and dependency to your build.gradle file to use this library in a project (replace VERSION_TAG with the version, such as 0.1.0+1.19):

repositories {
    maven {
        url "https://api.modrinth.com/maven"
        content { includeGroup "maven.modrinth" }
    }
}

dependencies {
    modImplementation include("maven.modrinth:nota:VERSION_TAG")
}

How to Use:

  1. Get a .nbs music file by downloading existing tracks, converting a .midi file in Note Block Studio, or composing a new song in Note Block Studio and exporting it as .nbs.
  2. Load your song files and build a playlist in Java before playing them:
    Song song = NBSDecoder.parse(new File("path/to/song.nbs"));
    Song song2 = NBSDecoder.parse(new File("path/to/another/song.nbs"));
    Playlist playlist = new Playlist(song, song2,...);
  3. Use RadioSongPlayer to play a song for added players anywhere in the world:
    Song song; // Preloaded song
    RadioSongPlayer rsp = new RadioSongPlayer(song);
    rsp.setId(new Identifier("example:radio"));
    rsp.addPlayer(player);
    rsp.setPlaying(true);
  4. Use PositionSongPlayer to play a song from a specific block coordinate within a set distance (default is 16):
    Song song; // Preloaded song
    PositionSongPlayer psp = new PositionSongPlayer(song);
    psp.setId(new Identifier("example:position"));
    psp.setBlockPos(pos);
    psp.setDistance(16);
    psp.addPlayer(player);
    psp.setPlaying(true);
  5. Use EntitySongPlayer to play a song following a specific mob or entity within a set distance (default is 16):
    Song song; // Preloaded song
    EntitySongPlayer esp = new EntitySongPlayer(song);
    esp.setId(new Identifier("example:entity"));
    esp.setEntity(entity);
    esp.setDistance(16);
    esp.addPlayer(player);
    esp.setPlaying(true);

Nota Mod Download Links

Filter by

For Minecraft 1.19.2, 1.19.1, 1.19

Click to rate this post!
[Total: 0 Average: 0]