ModsJava
Music Trigger
Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.
⬇ Download on CurseForgeThe author built this one for Minecraft 1.21.1 on NeoForge. On other versions it may install and then do nothing.
Overview
This mod allows you to play a custom music track when an FTB Quest is completed. Usage is as follows:
// kubejs/server_scripts/example.js
/**
* Play music upon quest completion
*
* @param {string} questLinkObjectId - The quest ID (can be copied from the quest UI)
* @param {string} fileName - Name of the audio file .mp3, .wav, or .flac (must be in config/music_trigger/audio/)
* @param {number} volume - Playback volume, range: [0.0, 1.0]
* @param {string} scope - Playback scope ("self", "nearby", or "all")
* @param {boolean} stopVanillaMusic - Whether to suppress vanilla Minecraft background music while playing (may cause unexpected behavior)
*/
MusicTriggerEvents.registerMusicTriggers(event => {
// Basic usage: play music for all players when the quest is completed
event.register("#67C8AAFC31D6F28B", "victory.mp3", 1.0);
// Advanced usage: only the completing player hears it, and vanilla music is stopped
event.register("#67C8AAFC31D6F28B", "secret_theme.mp3", 0.8, "self", true);
// Or play only for nearby players
event.register("#67C8AAFC31D6F28B", "boss_music.flac", 1.0, "nearby");
});Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21.1
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on CurseForge — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
File checked by MCModsHub
- Ships as music_trigger-1.0.0.jar — drop this file into the mods folder
- Download size: 163 KB
- Download link checked 24 Oct 2026 — working
These come from our own check of the pack file, not from the source page.