The bug
When holding a sword or trident in Creative mode, clicking on a block resets the attack cooldown. However, the player is not informed of this as the attack speed indicator does not appear.
How to reproduce
Ensure you are in Creative mode
Give yourself a sword that deals 10 attack damage and has a slow attack speed:
/give @s diamond_sword[attribute_modifiers={modifiers:[{amount:9,name:attack_damage,operation:add_value,type:generic.attack_damage,uuid:[I;1,2,3,4]},{amount:-3.5,name:attack_speed,operation:add_value,type:generic.attack_speed,uuid:[I;5,6,7,8]}]}]
Spawn two cows
Attack the first cow with the sword when the attack meter is full
→ ✔ The cow is killedClick on a block with the sword when the attack meter is full
→ ❌ The attack speed indicator is not displayedImmediately attack the second cow
→ ✔ The cow is not killed
Linked issues
relates to
Comments
Can confirm in 21w11a.
Can confirm in 1.18.1 and 22w05a.
Can confirm in 1.19.
Can confirm in 21w06a.