DiscAPI
Music discs have always been one of Minecraft's most collectible treasures, but the vanilla selection is limited to a handful of tracks. DiscAPI changes that entirely. This lightweight library mod gives you a single generic disc item that can hold any song you define through datapacks, meaning you can build an entire custom soundtrack without touching a single line of Java code. Whether you are running a server with a curated playlist or building a themed adventure map, DiscAPI for Minecraft hands you the tools to make every disc feel unique.
What DiscAPI Actually Does
At its core, DiscAPI adds one item: discapi:disc. That single item can represent any song, because the song data lives in your datapack rather than in the item itself. The mod works with the vanilla jukebox out of the box, including comparator output, so redstone contraptions that depend on disc detection continue to function normally.
The texture system deserves special attention. Instead of requiring a brand-new texture for every disc, DiscAPI splits the disc art into an outer ring and an inner ring, both tinted per item using ARGB color values. That means a red disc, a blue disc, and a gold disc can all share the same template while looking completely distinct. An optional discapi:artist component adds an "Artist: ..." line to the tooltip, giving proper credit to whoever made the track. There is also a creative tab containing the generic disc, so you can test things without typing commands.
Jade Integration and Quality-of-Life Extras
If you happen to run Jade, DiscAPI offers optional integration that displays a music-player style progress bar whenever you look at a playing jukebox, showing the current position alongside the total track length. No dependency is bundled, so the mod stays lean if you skip it.
Supported Versions and Loaders
DiscAPI targets modern Minecraft releases and is built around the newer component and datapack systems, including the holder set ingredient format introduced in 26.x. It is designed for Fabric, and KeenLib is a required dependency that must be installed alongside it. Optional additions include Cloth Config for an in-game config screen and Mod Menu for a config button on Fabric setups. If you are unsure which build matches your instance, the foxygame.net launcher automatically matches compatible DiscAPI builds to your installed game version, so you never end up with a mismatched pair of jars.
How to Install DiscAPI
Getting started is straightforward. Here is the process:
- Install Fabric Loader for your Minecraft version.
- Download DiscAPI and place the jar in your mods folder.
- Download and install KeenLib, since DiscAPI will not load without it.
- Optionally add Cloth Config and Mod Menu for configuration access.
- Launch the game and confirm the generic disc appears in its creative tab.
If you prefer a simpler route, the foxygame.net launcher includes DiscAPI in its add-on catalog, letting you install it with a single click and receive automatic updates whenever a new build drops.
Adding Your Own Discs with Datapacks
The real power of DiscAPI for Minecraft lies in datapack support. A disc is simply a jukebox_song entry combined with the item's components. Drop a JSON file into data/<your_pack>/jukebox_song/<song_id>.json containing the comparator output, description, length in seconds, and a sound event reference.
One important detail: the sound event must already exist in the registry, because datapacks and resource packs cannot invent new sound events. The standard workaround is to point at a vanilla event such as minecraft:music_disc.11 and then override its audio through a resource pack using a sounds.json entry with replace: true. Mono Ogg Vorbis files are recommended so the disc audio stays positional.
Handing Out and Crafting Discs
Colors are supplied as [outer, inner, edge] in ARGB format, and the artist line is optional. A give command looks like this: /give @p discapi:disc[jukebox_playable="your_pack:my_song",custom_model_data={colors:[-14725492,-5711617,-12566464]},discapi:artist="Your Name"]. Recipes follow the standard datapack format, but remember that since 26.x an ingredient must be written as a plain item id or a list, not the old object form.
A complete working example ships with the project, including a datapack, a resource pack, and a real track, so you can see every piece in action before building your own.
Final Thoughts
DiscAPI solves a problem that has quietly frustrated map makers and server owners for years: adding music without writing code or duplicating items. With colorable textures, full datapack support, comparator compatibility, and optional Jade integration, it is a compact but genuinely useful library. Install KeenLib, drop in the jar, and start composing your world's soundtrack.
===ARTICLE===