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

Related issues

MC-125469 Trident doesnt fit to hand while sneaking MC-125540 Player doesn't hold trident when sneaking MC-125581 trident bug 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 MC-129385 trident when we shift and when we want to attack with them MC-131597 Incorrect placement with trident and bow MC-131729 trident fly above your hand MC-132920 Trident in the air MC-138870 Channelling trident when using shift bug MC-141300 Aiming the trident while sneaking causes it to float above the player MC-144119 Flying Trident MC-150167 Trident bug MC-150289 Aiming trident while sneaking makes it float in 1.14 again MC-151292 трезубец летает при присидании MC-151688 Error with a trident MC-159017 trident wont move with hand when you crouch MC-160853 Trident Animation Issues

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media][media][media]
migrated

I also have this problem in single player

CivetKitty

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.

migrated

Still an issue in 18w20a

migrated

Affects 1.13-pre1

migrated

Not fixed in 1.13-pre5

migrated

Still an issue in pre6

migrated

Affects 1.13-pre7

migrated

Affects 1.13-pre7 i confirm

Asteraoth

Confirmed for 18w30b

Asteraoth

Confirmed for 18w31a

Asteraoth

Confirmed for 18w32a

Asteraoth

Confirmed for 18w33a

Asteraoth

Confirmed for 1.13.1-pre1

migrated

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.

migrated

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).

violine1101

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

wobst.michael

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

[Mod]Les3awe

Confirmed fixed in 19w42a.

migrated

(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