is there a way to make a charged melee attack make a sound when i hit an enemy?

Started by NubsyNub on

Topic category: Help with modding (Java Edition)

Last seen on 02:26, 13. Aug 2023
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is there a way to make a charged melee attack make a sound when i hit an enemy?

im trying to make a weapon that makes a sound when the attack cooldown thing is over but it either plays whenever i hit an enemy in general or just doesnt play a sound at all, is it even possible do this?

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I would recommend setting up…
Mon, 07/17/2023 - 22:19

I would recommend setting up a wait condition that is set to the same time as the cooldown is set to.