Make music stop playing upon gui closing

Started by KnightlyIo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make music stop playing upon gui closing

So I'm making a shopkeeper, and I want music to play while inside the trading gui, which I got to work. The thing I need help with is making the music STOP when you exit the gui. Please help :(

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There should be a When GUI…
Sat, 03/07/2026 - 22:49

There should be a When GUI closed procedure trigger inside of the UI editor which you can use to make a procedure to stop a sound form playing