Mojira Archive
MC-135063

Interacting with blocks resets attack speed

The bug

After right-clicking blocks that can be interacted with, such as doors, buttons, levers, and note blocks, the attack speed will reset and there is no indication made via the attack indicator.

How to reproduce

  1. Get a command block and a wooden sword
  2. Put a button on the command block and put this command into the command block:
    summon pig ~ ~1 ~ {Health:4f}
  3. Push the button with wooden sword in hand, and right after pushing it, hit the pig
  4. Notice the pig is not dead and that no attack indicator appeared after pushing the button

As the pig is at 4 health, and wooden swords do 4 damage, the pig should be dead, but it is still alive. Either the button should not reset attack speed, or the attack indicator should reflect the reset.