How to make a sound play once?

Started by Samozoid on

Topic category: Help with Minecraft modding (Java Edition)

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

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 ----" ?

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'

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.

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?