mojira.dev
MC-302221

Moving entities deflect arrows

Description

When shooting with a bow at the edge of the bounding box of a moving entity, there is a chance of the arrow getting deflected and upon landing it’s actual position gets updated (behind the mob, as if it did not hit, client-server desync)

Steps to Reproduce

  1. Spawn a Husk (theoretically it’ll work for every hostile mob and most likely any moving Entity)

  2. Let the Husk run towards you, while it does so shoot arrows at the top edge (head) of their bounding box

  3. In some cases the arrow deflect (without the entity having damage immunity), it might take some tries to trigger this bug

Notes

  • Tested in singleplayer as well as on a localhost vanilla dedicated server (both having the issue)

  • I was not able to reproduce this without the entity moving

  • Tested in 1.21.8, 1.21.5, 1.21.3 (the issue is present in every version, however it’s much more noticeable in 1.21.6+ due to the projectile precision changes. In older version you need to aim way above the entity to trigger the bug)

  • This is different from MC-102732 which seems to take damage immunity as the cause of the issue. However this issue does not happen due to damage immunity, the arrow deflects without the entity being immune at the time the arrow hits. Furthermore unlike in the mentioned issue the arrow receives a position update upon landing (unlike in the mentioned bug report, where it stays at the deflected position)

  • This is different from MC-298762 as this issue is phrased to only happen on flying mobs or phantoms. However flying mobs (bats, phantoms) are mentioned in the other bug report as well?

  • Attached a video of me reproducing this bug in 1.21.8

Environment

Linux

Attachments

Comments 0

No comments.

MrKinau

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8

Retrieved