
Modrinth · Minecraft mod
Get Current Song
Simple Minecraft mod to allow you to view the currently playing song
Quick answer
Which Get Current Song release matches 1.18?
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.
This file is marked client-only.
What else does Get Current Song 1.0.1 need?
1.0.1 on 1.18. Every mod below is checked against that same setup.
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 on 1.18. Pick another file and the loader, install side or required mods may change.
- 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.
- 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.
- 03
Put it on the correct side
It must be installed on the client. Do not install it on the dedicated server.
- 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— Returntrueif the song info is currently in a loaded state. Attempting to read from the database when this returnsfalsemay not return correct data. You have been warned!SongNameDatabase#getSong— Gets the current song by name ornet.minecraft.util.Identifierand returns aSongNameDatabase.SongInfoobject ornullif 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.
1.18.1
1 loader build1.18
1 loader buildCheck 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.0.1
get-current-song-1.0.1.jar
30 Jan 2022
Looking for an older file? The official Modrinth project page is in Resources.