Back to mods
Get Current Song project artwork

Modrinth · Minecraft mod

Get Current Song

Simple Minecraft mod to allow you to view the currently playing song

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Get Current Song release should I use?

Updated 4 years ago
Latest stable file 1.0.1
Game version 1.18, 1.18.1, 1.18.2
Loader Fabric

Get Current Song 1.0.1 targets 1.18, 1.18.1, 1.18.2 with Fabric. It must be installed on the client. Do not install it on the dedicated server. No extra mods listed for this file.

Where it goes

Is Get Current Song required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does Get Current Song 1.0.1 need?

1.0.1. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Get Current Song without breaking your instance.

Built for Get Current Song 1.0.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.1. It targets 1.18, 1.18.1, 1.18.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.1. It opens that exact file at the source.

About this project

What does Get Current Song add?

Get Current Song

This is a simple FabricMC mod that allows you to get the currently playing song in Minecraft via a command. You can download the latest version on Modrinth.

Commands

This mod adds two commands to the game:

  • /getsong — Gets information about the currently playing song, such as the name and composer.
  • /getsongid — Gets the namespaced ID of the currently playing song.

However, instead of using these commands, you can see the same information on the F3 screen.

API

This mod provides a resource-based method of getting information about the songs in Minecraft, such as name, composer, album, and track number.

Resource pack developers

If your resource pack adds custom music to the game, consider adding your song(s) to the getcurrentsong/song_names.json file in your resource pack. This JSON file has one root object, with keys being the song IDs and values being an object whose form is described below:

{
    "name": "song name (string, required)",
    "composer": "composer's name (string, required)",
    "soundtrack": "album name (string, optional)",
    "trackNumber": "track number in album (integer, optional)"
}

If the soundtrack is specified, the track number must also be specified, and vice-versa.

Mod develepers

To include this mod's API with Gradle, add the following to your build.gradle (code adapted from the Modrinth Maven docs):

repositories {
    // Other Maven repositories can go above (or below) Modrinth's. We don't need priority :)
    // Do remember, though, this is the `repositories` block below where plugins are declared, not in `pluginManagement`!
    maven {
        name = "Modrinth"
        url = "https://api.modrinth.com/maven"
        content {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
    modApi "maven.modrinth:getcurrentsong:1.0.1"
}

Once you have added the API to your build.gradle, you can load song information from resource packs using the following API (the SongNameDatabase class is in the io.github.gaming32.getcurrentsong package):

  • SongNameDatabase#isInitialized — Return true if the song info is currently in a loaded state. Attempting to read from the database when this returns false may not return correct data. You have been warned!
  • SongNameDatabase#getSong — Gets the current song by name or net.minecraft.util.Identifier and returns a SongNameDatabase.SongInfo object or null if the song wasn't found in the database.

Project description from Modrinth.

Pick your setup

Get Current Song by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

3 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Get Current Song versions and loaders

1 of 1 releases match

Looking for an older file? The official Modrinth project page is in Resources.