Nota

Nota

Port of the NoteBlock API for fabric, play .nbs files as noteblock sounds.

by
1.1K Downloads
fabricquiltlibrary
Rent Server with this Mod

About this Mod

Nota

Port of the NoteBlock API for fabric, play .nbs files as noteblock sounds.
This port is not complete replica, some features are missing or unfinished.
You can find original spigot plugin here.
This library can be used server-side only or in singleplayer.

Example

Development

Adding to your project

To use Nota in your project add the Modrinth repository to your build file and a mod dependency. Replace the VERSION_TAG with the latest version, for example 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 get .nbs

Playing songs

Song in .nbs format have to be loaded before you can use it.

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,...);

SongPlayer types

There are 3 types of SongPlayer:

  • RadioSongPlayer
  • PositionSongPlayer
  • EntitySongPlayer

RadioSongPlayer

Plays song for all added players no matter where they are.

Song song; // Preloaded song
RadioSongPlayer rsp = new RadioSongPlayer(song); // Create RadioSongPlayer.
rsp.setId(new Identifier("example:radio")); // Set unique identifier, not necessary
rsp.addPlayer(player); // Add player to SongPlayer so they will hear the song.
rsp.setPlaying(true); // Start RadioSongPlayer playback

PositionSongPlayer

Plays song for all added players in specified range from specified point.

Song song; // Preloaded song
PositionSongPlayer psp = new PositionSongPlayer(song); // Create PositionSongPlayer.
psp.setId(new Identifier("example:position")); // Set unique identifier, not necessary
psp.setBlockPos(pos); // Set location where the song will be playing
psp.setDistance(16); // Set distance from target location in which players will hear the SongPlayer, default: 16
psp.addPlayer(player); // Add player to SongPlayer so they will hear the song.
psp.setPlaying(true); // Start PositionSongPlayer playback

EntitySongPlayer

Plays song for all added players in specified range from specified entity.

Song song; // Preloaded song
EntitySongPlayer esp = new EntitySongPlayer(song); // Create EntitySongPlayer.
esp.setId(new Identifier("example:entity")); // Set unique identifier, not necessary
esp.setEntity(entity); // Set entity which position will be used
esp.setDistance(16); // Set distance from target location in which players will hear the SongPlayer, default: 16
esp.addPlayer(player); // Add player to SongPlayer so they will hear the song.
esp.setPlaying(true); // Start EntitySongPlayer playback

Available Versions

nota-0.1.0+1.19.4alpha
MC 1.19.4fabric, quilt
April 27, 2023
nota-0.1.0+1.19alpha
MC 1.19, 1.19.1, 1.19.2fabric, quilt
August 20, 2022

How to Install Nota on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.19.4).

3

Install Mod

Open the mod browser in the dashboard and search for "Nota". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricquilt

Minecraft Versions

1.19.4, 1.19.2, 1.19.1 (+1 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Nota server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.19.4). You can switch loaders with one click in the panel.

Is Nota compatible with fabric and quilt?

Nota officially supports fabric, quilt for Minecraft 1.19.4, 1.19.2, 1.19.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Nota – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Nota consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Nota with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v3.0 only
Server-side
Required

Supported Versions

1.19.41.19.21.19.11.19