HomeJavaModsmp3 music server/client side
mp3 music server/client side
ModsJava

mp3 music server/client side

by spmatrix · on Modrinth

The mod is designed for use in both single-player and multiplayer settings. Operators (OPs) can utilize server-side functionality (when broadcast mode is…

⬇ Download on Modrinth

MP3 Music Mod - Project Documentation

Project Overview

MP3 Music Mod is a Minecraft Fabric modification that enables in-game playback of MP3 music files from local directories. Designed for both single-player and multiplayer environments, it provides server operators with tools to broadcast music to all connected players, enhancing the communal gaming experience.

Core Features

🎵 Music Management

🎮 In-Game Commands

All commands are OP-only and accessible via chat:

Command Description

🌐 Network Features

Technical Architecture

Core Components

  1. ServerMusicManager - Central music library and playlist management
  2. ServerMusicCommands - Brigadier-based command registration and handling
  3. ServerMusicSender - Network streaming engine with chunk scheduling
  4. MusicStreamClientReceiver - Client-side packet handling and playback
  5. Mp3Player - JLayer-based MP3 decoder and audio playback
  6. Custom Payload System - Fabric networking for music data transmission

Key Technical Details

Compatibility Matrix

Development Tools & Dependencies

Primary Tools

Key Dependencies

gradle

dependencies {
    // Core Fabric
    modImplementation "net.fabricmc.fabric-api:fabric-api:0.138.3+1.21.10"
    
    // MP3 Decoding
    implementation "javazoom:jlayer:1.0.1"
    
    // Audio Processing
    implementation "com.googlecode.soundlibs:jlayer:1.0.1.4"
}

Build Configuration

properties

# Project Properties
archives_base_name = mp3_music
mod_version = 1.2.2
minecraft_version = 1.21.10
yarn_mappings = 1.21.10+build.1
loader_version = 0.18.1
fabric_version = 0.138.3+1.21.10

Performance Characteristics

Server-Side

Client-Side

Deployment Scenarios

Single-Player

Multiplayer Server

Modpack Integration

User Experience

Setup Process

  1. Install Fabric Loader and Fabric API
  2. Place mod JAR in mods folder
  3. Create music folder (default: music_mp3 in server directory)
  4. Add MP3 files
  5. Use /mp3 folder to configure path if needed

Typical Usage Flow

text

Operator: /mp3 folder music_mp3
[System]: Music folder set, contains 15 MP3 files
Operator: /mp3 list 1
[System]: Displaying songs 1-10...
Operator: /mp3 random2
[System]: Started shuffled playlist: Song1.mp3
[All Players]: Music begins playing simultaneously

Future Compatibility

Upgrade Path to 1.21.11

Long-term Maintenance

Support & Community

Known Issues

Best Practices


Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more