mojira.dev
MC-127970

Using Riptide on a trident with an item in your off-hand causes visual glitch with said item

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

  1. 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
  2. Ensure that you're in first person, enter some water, and use the riptide enchantment to launch yourself

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

MC-278974 (machine translation,Regarding the loopholes of the Trident in rapids)激流三叉戟会让干扰其他物品的动作 Resolved MC-268752 shield blocking screen when using riptide trident Resolved MC-261850 Off-hand item & Riptide Trident Resolved MC-259943 Sheild covers up most of the screen while using Riptide Resolved MC-228794 When I use a riptide trident with a shield in my off-hand it glitches. Resolved

Attachments

Comments 52

It looks quite cool though 🙂.

42 more comments

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.

Can confirm for 1.21.8

Cavinator1

(Unassigned)

Confirmed

Gameplay

Normal

Player Animation

animation, item, off-hand, rendering, riptide, trident

Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w19b, ..., 1.20.5 Pre-Release 1, 1.20.5, 1.20.6 Release Candidate 1, 24w44a, 1.21.4

Retrieved