How do I Play a sound when someone has a helmet on

Started by Yosuu on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I Play a sound when someone has a helmet on

I am trying to play a song that is around 3:00 long when someone puts on a helmet I made. I imported the song as an ogg and have a procedure under Helmet Tick event (https://imgur.com/a/602jCUA). When I put on the helmet the game freezes and crashes.

 

 

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The game is probably…
Sat, 09/21/2019 - 10:29

The game is probably crashing because it is attempting to repeatedly play that song over and over again.
You will probably need to find a way to test if the song is being currently played, and if it is not, then play it.