how to play sound again when previous sound is done?

Started by EthanProPlays on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to play sound again when previous sound is done?

Im making an SCP mod and im trying to make (this might sound random) a singing flytrap, and I want it so if its singing already, if you right click it does not play again, and when the sound is over (sound is 1600 ticks or 40 seconds) it will play again. sorry for the messy code

https://imgur.com/a/DpLq38v?third_party=1 hopefully copy and pasting the link will bring you to the image.

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Note: This has not been…
Fri, 01/31/2025 - 02:18

Note: This has not been solved yet, it would be great if somebody could help me.

 

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
set time to 1600 just make a…
Tue, 02/18/2025 - 21:37

set time to 1600

just make a timer, while true: set time to get number variable Local: time - 1

<code to make it not play>

if time = 0

<code to let it play>