The bug
When a player is picking up items while swimming, the items are moved above the players head. This looks somewhat weird and is also not the case when the player is not swimming.
I have not tested whether this is the case when flying with elytra as well, but I assume it is.
To reproduce
Enter a place that's 1 block tall
Enable F3+B
Drop an item
→ ❌ The item is moved above your hitbox when it's picked up
Videos
Attachments
Comments 13
Can confirm. Whenever you have a 1x1 hitbox (climing, swimming, using riptide or elytra) the item you pick up goes above your hitbox because normally you hvae a 1x2 hitbox.
Relates to MC-206320
Can confirm in 24w18a. I would argue this is caused by MC-160217 (and could maybe even duplicate it depending on whether this issue should be fixed unrelated to MC-160217). The item actually travels to an expected location (the center of the player's hitbox) but due to being elevated appears above the entity.
Here is a demonstration:
[media]
I don't believe that this is a bug, just because of where items go to when picked up, though the behaviour could be changed.