mojira.dev
MC-125204

Trident appears floating when charging it while sneaking

See attached screenshot

Expected behaviour:
Trident staying in hand

To reproduce:
Enter a multiplayer server,
Ask a player to hold up a trident and shift.
Observe how trident floats above hand

Linked issues

MC-125469 Trident doesnt fit to hand while sneaking Resolved MC-125540 Player doesn't hold trident when sneaking Resolved MC-125581 trident bug Resolved MC-125897 Hello, I would like to report a Bugs that there is with the Trident. As soon as one crouches with the loaded Trident, the Trident flies in the hand Resolved MC-129385 trident when we shift and when we want to attack with them Resolved

Attachments

Comments 18

I also have this problem in single player

I tested this issue with other poses in MC-125748, but since it has been considered as a dupe, I'll explain it again.

This issue affects both single player and multiplayer, when holding the trident on the mainhand, offhand, and both, and while standing upright and swimming. You can also notice that duel wielding tridents on both hands makes the player lift both hands when attempting to throw it(MC-125337). While swimming, other items as well as the trident are affected by this hovering glitch.

Still an issue in 18w20a

Affects 1.13-pre1

Not fixed in 1.13-pre5

8 more comments

Confirmed for 1.14.3-pre3

The issue is in the LayerHeldItem.renderHeldItem method (MCP 1.12.2 names). First the item is rotated by the arm rotation (translateToHand), and then if the player is sneaking it is translated 0.2 units downwards. However, this is 'downwards' relative to the arm rotation. When the arms are fully raised (aiming a trident when not swimming), the item is actually translated 0.2 units upwards. This can be fixed by applying arm rotations after the sneak translation.

Interestingly it seems this issue has been partially fixed (not sure exactly when, but testing in 1.14.4). Items are now positioned correctly while swimming, but the issue still exists for sneaking (the main focus of this report).

As of 19w39a, the issue also happens if you're not charging the trident, see MC-162374.

Appears to be fixed in 19w42a. Can someone please double check.

Confirmed fixed in 19w42a.

MegaXLR

(Unassigned)

Confirmed

Player, Rendering, Textures and models

Minecraft 18w07a, Minecraft 18w07b, Minecraft 18w07c, Minecraft 18w10a, Minecraft 18w11a, ..., Minecraft 1.14, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3, 1.14.4, 19w39a

19w42a

Retrieved