The bug
18w14a added a new animation when using riptide on a trident, which causes the trident item in your hand to be turned horizontally instead of being held on its side as normal.
However, if you have any item in your offhand, the item in your offhand will also be turned horizontally but will also appear at a very strange position on your screen.
How to reproduce
Obtain a riptide trident and a shield
/item replace entity @s weapon.mainhand with minecraft:trident{Enchantments:[{id:"riptide",lvl:3}]} /item replace entity @s weapon.offhand with minecraft:shield
Ensure that you're in first person, enter some water, and use the riptide enchantment to launch yourself
Look at the shield held in your offhand as you do this, and take note as to whether or not items held in the offhand render in the incorrect position in first person when using a riptide trident
→ ❌ Items held in the offhand render in the incorrect position in first person when using a riptide trident
Expected behavior
Items held in the offhand would not render in the incorrect position in first person when using a riptide trident.
Code analysis
@unknown has done a code analysis in this comment.
Linked issues
is duplicated by
relates to
Attachments
Comments


Affects 1.13-pre7
Confirmed for 18w30b
Confirmed for 18w31a
Confirmed for 18w32a
Confirmed for 18w33a
Confirmed for 1.13.1-pre1

This bug appears to be fixed in 19w02a, but only because at some stage or another in 1.14's snapshots they removed the animation where when you use the riptide trident, in your hand it no longer goes sideways, hence meaning this bug no longer happens.

Never mind, forget what I said above, another bug was making the animation not play.
As for this bug, it is confirmed for 19w02a.

Still in 19w13b and 19w14a

Still in 19w14b and 1.14 Pre-Release 1

Still in 1.14 Pre-Release 2

Still in 1.14 pre-3, 1.14 pre-4 and 1.14 pre-5
Note: it does not affect all items

Still in 1.14 Release

Still in 1.14.1 Release

Still in 1.14.2 Pre-Release 1 and 1.14.2 Pre-Release 2

Still in the game in 1.14.4 Release

Yeah found the same thing in 1.14.4, seems to work with many items in off hand like crafting table, golden carrot, bow, bamboo or fishing rod.

Biggest issue is with shield, because it's just so big. __ It's a little discouraging to use it with trident because it blinds you.

In 20w29a

This also works the other way round. If you use a riptide trident in your offhand, it causes a visual glitch with the item in the mainhand.

Still affects 20w48a.
Can confirm in 21w07a.
Can confirm in 21w08b.
Can confirm in 21w16a.

I thought it was intentional:
If you put the riptide trident in your offhand and put a fire aspect sword on your main hand and kill a mob by holding and releading right click, the mob will be "cooked" with the fire aspect sword even though you didnt left click with it.
So it's like you're using the sword along with the trident.
I might be wrong though

Yeah, same happens if you got a bow in off hand and a sword in the main hand

can confirm in 1.17. its also even weirder with a shield
I am able to confirm this behavior in 21w41a. Here are some extra details regarding this problem.
The Bug:
Items held in the offhand render in the incorrect position in first person when using a riptide trident.
Steps to Reproduce:
Obtain a riptide trident and a shield.
/item replace entity @s weapon.mainhand with minecraft:trident{Enchantments:[{id:"riptide",lvl:3}]}
/item replace entity @s weapon.offhand with minecraft:shield
Ensure that you're in first person, enter some water, and use the riptide enchantment to launch yourself.
Look at the shield held in your offhand as you do this, and take note as to whether or not items held in the offhand render in the incorrect position in first person when using a riptide trident.
Observed Behavior:
Items held in the offhand render in the incorrect position in first person when using a riptide trident.
Expected Behavior:
Items held in the offhand would not render in the incorrect position in first person when using a riptide trident.
Can confirm in 1.18.1.

Code analysis based on 1.18.1 with yarn mappings.
The rendering of the held items is done by net.minecraft.client.render.item.HeldItemRenderer#renderFirstPersonItem(AbstractClientPlayerEntity, float, float, Hand, float, ItemStack, float, MatrixStack, VertexConsumerProvider, int)
. This method checks player.isUsingRiptide()
, and if that is true, then it applies some transformations to the held item. These transformations are fine for tridents, but don't play nicely with some items, such as shields.
The easiest way to fix this would be to only apply the transformations if the item to render is a trident; that is, replace player.isUsingRiptide()
with player.isUsingRiptide() && item.isOf(Items.TRIDENT)
. This keeps the shield (and any other non-trident item) in the normal place:

Could someone make a texture pack that fixes this?
If not, how could I make the pack myself?
Can confirm in 1.18.2 and 22w13a.

Can confirm in 1.19

Can confirm in 23w06a.

Can confirm in 1.19.4pre3

Can confirm in 23w12a

Can confirm in 23w18a.

Can confirm in 1.20 release canidate 1

Can confirm in 1.20.1

Can confirm in 23w31a.

Can confirm in 23w32a.

Can confirm in 1.20.2

Can confirm in 23w40a

In 23w43a.

Can confirm in 23w51a/23w51b

Can confirm in 24w06a, affects wind charges

Confirmed in 24w07a

Confirmed in 1.20.5 pre1

Can confirm in 1.20.5 & 1.20.6-rc1

Best way to fix this is just to make it so the first-person riptide animation only plays for the item being used to riptide. If the trident used to riptide is mainhand, the animation only plays for the mainhand, and vice versa.
It looks quite cool though 🙂.