How to make a sound play once?

Started by Samozoid on

Topic category: Help with modding (Java Edition)

Last seen on 12:27, 23. Nov 2023
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a sound play once?

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 17:43, 28. Jan 2022
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 12:27, 23. Nov 2023
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 08:34, 6. Nov 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 12:27, 23. Nov 2023
Joined Sep 2021
Points:

User statistics:

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