Procedure that respects attack cooldown

Started by Gengar_Marc127 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure that respects attack cooldown

I'm making an enchantment that activates each time the player hits a mob with a weapon, but if I use the “When entity attacked” or “Before Entity is hurt” global triggers, it will work if I spam hit. I don't want that to happen, only when the sword meter is full. If anyone has an answer, please tell me, thanks in advance.