promotional bannermobile promotional banner

Music Trigger

A mod that lets you play specific music whenever an FTB Quest is completed.

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");
});

The Music Trigger Team

profile avatar
  • 4
    Followers
  • 11
    Projects
  • 1.6M
    Downloads

More from Flechazo098View all

  • Moves Like Mafuyu project image

    Moves Like Mafuyu

    • 74.8K
    • Mods

    A lightweight action-oriented mod designed to optimize movement experience during exploration and building.

    • 74.8K
    • June 21, 2026
    • Mods
  • ApricityUI project image

    ApricityUI

    • 452
    • Mods

    Build Minecraft UI with HTML + CSS + JS, follows Web standards as closely as possible.

    • 452
    • June 15, 2026
    • Mods
    • +1
  • Sophisticated Sorter project image

    Sophisticated Sorter

    • 170.2K
    • Mods

    Extends the built-in container sorting functionality of the Sophisticated series to work on the player inventory and all usable containers.

    • 170.2K
    • June 13, 2026
    • Mods
  • Cat Burger project image

    Cat Burger

    • 2.1M
    • Mods

    A cat-shaped burger floats by your side, just like a pet in an RPG game.

    • 2.1M
    • June 7, 2026
    • Mods
    • +1
  • Moves Like Mafuyu project image

    Moves Like Mafuyu

    • 74.8K
    • Mods

    A lightweight action-oriented mod designed to optimize movement experience during exploration and building.

    • 74.8K
    • June 21, 2026
    • Mods
  • ApricityUI project image

    ApricityUI

    • 452
    • Mods

    Build Minecraft UI with HTML + CSS + JS, follows Web standards as closely as possible.

    • 452
    • June 15, 2026
    • Mods
    • +1
  • Sophisticated Sorter project image

    Sophisticated Sorter

    • 170.2K
    • Mods

    Extends the built-in container sorting functionality of the Sophisticated series to work on the player inventory and all usable containers.

    • 170.2K
    • June 13, 2026
    • Mods
  • Cat Burger project image

    Cat Burger

    • 2.1M
    • Mods

    A cat-shaped burger floats by your side, just like a pet in an RPG game.

    • 2.1M
    • June 7, 2026
    • Mods
    • +1