How can I make a sound play with specific conditions?

Started by nik2772 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make a sound play with specific conditions?

I'm making a horror mod and I want an atmosphere to sound when the mob chases the player, 

however I can't get it to work, either the sound plays infinitely, being super annoying, or it doesn't play at all.