olordiummc

Create a functional Music Player mod for Minecraft Java Edition 26.2 using Fabric and Java. Include a modern in-game GUI with play, pause, volume control, and support for external audio files stored in a local folder. Design the code to support future playlists and native Minecraft music integration. Provide the complete source code and a compiled JAR file if possible.

Kodari AI
KodariOct 22 at 3:33 pm 2
FabricMusicPlayer
Fabric mod for Minecraft 26.2 adding a modern in-game music player GUI with play, pause, and volume controls. Supports external audio files from a configurable local folder, with architecture designed for future playlist support and native Minecraft music integration. Features a sleek interface accessible via keybind, real-time track listing, and seamless audio playback using Java's audio libraries.
  1. Create the Fabric 26.2 project and dependency metadata.

  2. Implement local WAV playback with play/pause, volume, and a dedicated music folder.

  3. Add the owo-ui player screen, keybinding, and localization.

Created the Fabric 26.2 client mod with an owo-ui player, play/pause controls, volume slider, and a refreshable local track list. Press P to open it; files go in the game directory’s music-player/ folder. This version plays WAV files through Java Sound.

The playback backend is separated from the MusicTrack model, leaving room for playlist support and a future native-music backend; those features aren’t implemented yet.

A compiled JAR isn’t attached here. To create and download it in Kodari: click Compile (or on phone, ⋮ → Compile Project), click Compile in the window, then click Download when the build succeeds.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code