Get player attack cooldown

Started by a guy called l… on Thu, 03/23/2023 - 21:53

Topic category: Help with modding (Java Edition)

Last seen on 23:17, 24. May 2023
Joined Jan 2021

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get player attack cooldown
Thu, 03/23/2023 - 21:53

So, we all now about the +1.9 combat sistem. Well, I want to know how to get the player "attack cooldown"
When you attack, a sword-like bar apparear showing you how much time is left for the next attack, and if you attack before the bar is full, the damage dealed is less
I want to know how to get how much of that bar you have / miss for various procedures, as a procedure like "when hitting a mob: deal 3 damage" will always deal the 3 points of damage, even when spamming
I guess is a NTB, but I don't know what one is