Need help implementing battle music

Started by I Have The Hig… on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help implementing battle music

I'm not very used to the interface yet, but does someone know how to make battle music that starts when a player attacks, and stops when the attacker is killed/out of range?

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could use variable to…
Thu, 08/13/2020 - 20:37

you could use variable to detect when its on/off and then when entity is attacked if off play sound and on player tick update if  entity is not in 10 cubes stop sounds and when entity dies stop sound