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 32
relates to 1
Attachments
Comments 52
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 🙂.