How to stop a sound ?

Started by wanou067 on Sat, 09/29/2018 - 14:59

Topic category: Help with MCreator software

Last seen on 09:27, 14. Jun 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to stop a sound ?
Sat, 09/29/2018 - 14:59

   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 23:23, 12. Jun 2020
Joined May 2016
User points:

User statistics:

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

Try using the command part in procedures.

Last seen on 15:33, 20. Aug 2020
Joined May 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 20:05, 30. Oct 2020
Joined Sep 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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