Compatibility
Minecraft: Java Edition
1.20.1
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
Licensed MIT
Published 2 weeks ago
Updated 2 days ago
🎵 Music Player Mod
Music Player is a mod that lets you freely set and switch background music (BGM) based on in-game conditions. Customize your soundtrack to match the world’s atmosphere — whether it's day or night, peaceful or in battle!
📦 How to Use
- Inside your .minecraft folder, navigate to soundpacks.
- Set up your custom soundpack like this:
soundpacks/pack_id/assets/music_player/conditions/predicate.json soundpacks/pack_id/assets/pack_id/music/name.ogg
- Apply a resource pack with the same name as your pack_id to activate the BGM.
📄 Condition File Setup (predicate.json)
{
"priority": 100, // Higher priority takes effect when multiple conditions match
"music": "music/name.ogg",
// Playback conditions listed below
}
🎯 Available Playback Conditions
Condition | Description |
---|---|
"biomes": [] | Plays in the specified biomes (biome tags supported). |
"is_night": true/false | Plays only at night if true. |
"is_combat": true/false | Plays during combat if true (triggers when nearby mobs prepare to attack). |
"isVillage": true/false | Plays when villagers are nearby if true. |
"min_y": n | Plays when player Y position is higher than n. |
"max_y": n | Plays when player Y position is lower than n. |
"weather": [clear/rain/thunder] | Plays during specified weather. |
"dimensions": [] | Plays in specified dimensions. |
"gui_screen": [ ... ] | Plays only when specified GUI screens are open. Supported screens: crafting, brewing_stand, shulker_box, furnace, anvil, enchantment, cartographytable, smithing, merchant. |
🎶 Now you can create an immersive soundtrack tailored to every moment in your Minecraft adventure!
- Add this to your pack too soundpacks/pack_id/pack.mcmeta
{
"pack": {
"pack_format": 15,
"description": "",
}
}