How to make a sound play once?

Started by Samozoid on Wed, 09/01/2021 - 14:38

Topic category: Help with modding (Java Edition)

Last seen on 20:28, 17. Oct 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a sound play once?
Wed, 09/01/2021 - 14:38

I'm working on a block that when touched launches the player into the air and i need it play only once because it plays multiple times

Last seen on 14:48, 26. Sep 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
It doesn't work with a…
Thu, 09/02/2021 - 12:48

It doesn't work with a trigger 'on block right click' and "play at XYZ level - pitch - sound ----" ?

Last seen on 20:28, 17. Oct 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
its not 'on block right…
Sun, 09/26/2021 - 10:41

its not 'on block right click' its on 'when entity colide with block'

Last seen on 07:27, 1. Oct 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
This may be due to the event…
Sun, 09/26/2021 - 12:00

This may be due to the event being called multiple times. You might want to use variables to create a cooldown time for your sound.

Last seen on 20:28, 17. Oct 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
i have never tried that, how…
Sun, 09/26/2021 - 15:49

i have never tried that, how would i do that?