The bug
When the player is flying, the model in the inventory doesn't shifting its body correctly relative to the mouse position. For example, suppose the game is set to full-screen. If your cursor is at the left side of the screen, the model would look towards your cursor correctly. However, if your cursor is at the right side of the screen, the model would be shifting in the opposite direction relative to the cursor.
This issue does not seem to affect the player's swimming pose.
How to reproduce
Equip elytra
Fly using your elytra
Open your inventory menu
Move your mouse around, especially to the left and right side of Minecraft (or screen, if you're playing in full-screen mode.)
Note the model's behavior in relation to the mouse cursor
History of this issue
Originally, this ticket was reported for the inventory screen if the player is dead/dying. However, as of 15w41b, the inventory now closes when you die. It has then been suggested that this issue also occurs when opening the inventory after right-clicking a bed, but before getting into it. This video shows how that looks as of 20w07a: https://youtu.be/1bJgALyjt1Y.
Linked issues
is duplicated by 15
relates to 1
Attachments
Comments 53
What if you're doing something in your inventory, while you're at half a heart left, a zombie came up and killed you, and your mouse is outside of the inventory while you're holding a stack of diamonds?
Especially when the server has settings:
/gamerule keepInventory true
When all of the mentioned above happens, your diamonds will pop out of your inventory, and risk being thrown into a pit of lava, when you can avoid that entirely by not having the inventory GUI affect you when you're holding a stack of items.
It'll become an annoyance for you in the long run.
Thus, I propose that when you die with the inventory menu opened, your model falls down but the inventory doesn't close up immediately. This tells the player that he/she has died, and will take actions upon it.
As of snapshot 13w10b, this problem still exists. Note that when a player dies, the player's skin is reverted back to the default skin.
The bug isn't that the player model doesn't follow the mouse correctly, it's that you can actively use the inventory while dead, as stated above. That means that if you couldn't use the inventory, the bug would be fixed. 🙂
Seems easy enough!
I updated the title because from my testing the orientation generally was problematic, the shifting in relation to the cursor seemed mostly fine
I think the bug should be that you can access your inventory at all during death. It may be better to simply force the inventory GUI to close upon death, as you shouldn't have access to it until you respawn.