mojira.dev
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.

Linked issues

Comments 7

Confirmed in 1.16.1 and 20w30a. Related to MC-116510 and MC-118740.

In 1.16.2 Pre-3

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 21w11a.

Can confirm in 1.19.

Aldinyx

(Unassigned)

Confirmed

Combat, Player

Minecraft 1.12, Minecraft 1.12.1, Minecraft 18w14b, Minecraft 18w20a, Minecraft 18w22a, ..., 21w10a, 21w11a, 1.20.1, 1.20.4, 1.21

Retrieved