mojira.dev
MC-304222

Holding a spear and dropping an item from the inventory makes the spear play the jab animation

When having a spear in mainhand and droping out an item from inventory, the spear attacks while it shouldn’t.

Step to reproduce :

  1. Give yourself a spear in mainhand,

  2. Give yourself some random item in inventory

  3. Open the inventory and take an item

  4. Drop it outside of the player inventory

  5. Note how the spear attacks

✅ Expected Results :
The spear not attacking while in inventory

❌ Observed Results :
The spears attacks while in inventory

Linked issues

Attachments

Comments 4

Have you checked if it’s just a visual bug or actually does damage?

When reproducing it, it does seem to do that, but it is only a visual bug.

I’ve noticed this when interacting with blocks such as workstations & doors as well, and I’ve come to realize it’s because of how the attack animation is utilized.

There isn’t a generic “interaction” animation, it simply plays the punching animation, the same animation you see when attacking, mining, etc., and that’s the only such animation that has existed.
But the spear has now introduced another one, and when held, it uses that unique animation in all such cases.

Elgrenier

(Unassigned)

1515009

Confirmed

Expansion A

Normal

Combat, UI

25w46a

Retrieved