mojira.dev
MC-268365

Cooldown indicator appears with high attack speed attribute

When setting the players attack speed to a high number using the following command 
"/attribute @s minecraft:generic.attack_speed base set 10000" the cooldown indicator appears when switching slots shortly and then quickly disappears despite it shouldn't be doing so. Th

Linked issues

Comments 7

Can confirm.

 

EDIT: Correction, this also affects high values of haste.

10'000 is not a valid value for the attack speed attribute

Hey the number is just a number for the command, the game puts the highest valid attack speed onto items irrelevant of what the number on the end is. 
Furthermore even if it 10,000 isn't a valid value, the game still applies this number visually to all weapons and items the player has when the command is run. Using a more valid number of 30, this issue is still a thing. The cooldown indicator disappears for the main hand and all items but flashes quickly whenever switching a slot. High attribute speed or low attribute speed so long as the attack speed is high enough to remove the cooldown(which happens around 26) the bug appears. 

Made a video showcasing this happening at both 30 attack speed and a higher number in survival. You can see the indicator flashing quickly whenever slots are switched. https://youtu.be/cqFtRG_i_RQ
This should be a issue that affects most servers which utilise this. 

I suggest creating a new report with a more reasonable value, since it affects lower values too, as well as haste.

Hey you can check is cloned by or click here for the valid bug report
MC-268420

⚠️ Please do not add Affected Versions to resolved reports.

Have a look at the Resolution and the comments to see why this ticket has been resolved. If you think this ticket has been resolved erroneously you can contact the Mojira staff on Discord or Reddit.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

Kirill17

(Unassigned)

Community Consensus

(Unassigned)

1.20.4

Retrieved