Is there any way to detect when a sound is playing and give an effect after it starts?

Started by M4X4 on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there any way to detect when a sound is playing and give an effect after it starts?

Hello. I am working on a custom music disc mod and I was wondering if there is any way to check when a certain sound is playing (like a record sound) and give the people who can hear it an effect. I know I could make a right click procedure but I want this to work on a "backpacks" mod my friends and I are playing with, since there is a disc slot there.

 

Any help would be greatly appreciated and thank you in advance for said help.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would also like to know…
Thu, 03/02/2023 - 19:33

I would also like to know this, working on a tech mod for a machine that would detect if sound is playing within a certain radius and generate energy