Get player attack cooldown

Started by a guy called l… on

Topic category: Help with modding (Java Edition)

Last seen on 23:35, 30. Oct 2023
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get player attack cooldown

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

Last seen on 08:40, 9. Nov 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you find the answer bro?
Mon, 09/11/2023 - 07:47

Did you find the answer bro?