#βœ… | Is there a way to stop minecraft's music with a button?

1 messages Β· Page 1 of 1 (latest)

boreal lilyBOT
#

Checking the FancyMenu docs for the cleanest way to do that πŸŽ΅πŸ™‚

#

Yep, there is a way πŸ™‚ I’m just packaging the cleanest button setup for you now.

#

Yep πŸ™‚ You can do that with a FancyMenu button.

The easiest way is:

  • Add a button
  • Give it the action Set Minecraft Option
  • Set it to soundCategory_music:0.0

That mutes Minecraft’s music when clicked πŸŽ΅πŸ”‡

If you want a true on/off setup, you can also use a Music Controller element in a layout and toggle that layout with a button. That’s better if you want to stop/resume music more cleanly.

If you want, I can give you the exact click-by-click setup for either method πŸ‘Œ

warped wasp
#

I want vanilla background music to stop while my button starts playback of a custom song (on music channel, so turning off music volume is not an option)

boreal lilyBOT
#

Checking one detail: whether the custom song can play on the music channel while vanilla music is suppressed cleanly 🎧

boreal lilyBOT
# warped wasp I want vanilla background music to stop while my button starts playback of a cus...

Yep , in FancyMenu, the clean way is to use a Music Controller element, not the music volume 🎢

So for your setup:

  1. Add a Music Controller element

    • Disable Menu Music
    • And/or World Music, depending on where you want the vanilla music gone
  2. Add your Audio element for the custom song

    • Set it to the Music channel
  3. Make your button do the playback

    • Use the button action to start the Audio element
    • If needed, also toggle the layout that contains the Music Controller

That way, vanilla background music gets suppressed directly, while your custom track can still play normally on the music channel. No need to mute music volume at all πŸ‘

If you want, I can write out the exact button action script for a β€œpress once to start song, press again to stop song and restore vanilla music” setup πŸ˜„

boreal lilyBOT
#
Thread Marked as Solved

This support thread has been marked as solved by @warped wasp.

The AI helper is now disabled.

#

βœ… | Is there a way to stop minecraft's music with a button?

warped wasp
#

@boreal lily the vanilla main menu music doesn't stop when I load in the music controller