How can I make a sound play with specific conditions?

Started by nik2772 on

Topic category: Help with modding (Java Edition)

Last seen on 17:31, 27. Jun 2024
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.