How to stop a sound ?

Started by wanou067 on

Topic category: Help with MCreator software

Last seen on 20:57, 3. Jul 2021
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to stop a sound ?

   I am making a mod with a block that makes music. However, when I break the block, the music continues to play. Is there a way to cancel the play sound event? 

An, if it's possible, 

Is there a way to put an event "stop sound", so if I break the block, the sound will stop!

Last seen on 21:13, 31. Aug 2022
Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try using the command part…
Fri, 10/05/2018 - 19:00

Try using the command part in procedures.

Last seen on 18:58, 14. Mar 2021
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
that doesnt work either I…
Sat, 05/16/2020 - 04:39

that doesnt work either I tried...

Last seen on 22:49, 25. Aug 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I found this command to work…
Sat, 07/04/2020 - 01:35

I found this command to work:

 

/stopsound @a * mod id/namespace:name of sound

(if you try to stop the sound in game first you can use Tab)

 

here is what I used it for (it is when right clicked)

 

a procedure using the command and display names for a recorder that plays music

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i was able to do that just…
Mon, 07/20/2020 - 18:33

i was able to do that just using /stopsound @a once, works fine to me unless you are listening to 2 musics at same time :D