mojira.dev
MC-136147

Riptide tridents use mainhand item to inflict damage when thrown in the offhand

The bug

When you throw a riptide trident in the offhand, you hit with the mainhand item instead. This means that throwing a riptide trident in the offhand while holding nothing in the mainhand will make the trident deal minimal damage. This also means that a sword held in the mainhand will inflict damage, apply most of its enchantments (looting is intended), and take durability damage when you ram into mobs via riptide trident in offhand.

How to reproduce

  1. Setup a scoreboard to count all damage dealt

    /scoreboard objectives add Damage minecraft.custom:minecraft.damage_dealt
    /scoreboard objectives setdisplay sidebar Damage
    /scoreboard players add @s Damage 0
  2. Get a trident with Riptide I and spawn an entity

  3. Throw the trident in mainhand
    → ✔ Score increases with 80

  4. Throw the trident in offhand while holding nothing in main hand
    → ❌ Score increases with 10

Linked issues

Attachments

Comments 22

gaspoweredpick

Possibly relates to MC-99063

Can confirm. I'll leave a more detailed way on how to reproduce.

How to reproduce

  1. Setup a scoreboard to count all damage dealt.

    /scoreboard objectives add Damage minecraft.custom:minecraft.damage_dealt
    /scoreboard objectives setdisplay sidebar Damage
    /scoreboard players add @s Damage 0
  2. Get a trident with riptide I and spawn a sheep.

  3. Throw the trident in mainhand
      →✔  Score increases with 80.

  4. Throw the trident in offhand
    →❌ Score increases with 10.

I hope you don't mind me updating your ticket. 🙂

gaspoweredpick

It also seems that Impaling or strength work as they should in the offhand. The trident itself is the only thing that does reduced damage.

Edit: Impaling actually doesn't work in the offhand, but strength does add damage. The reason I thought it didn't was because I had a sword in my mainhand, and I discovered that mainhand weapon damage is applied to the offhand trident attack.

Confirmed for 1.13.2-pre1.

12 more comments

Can confirm in 1.18.2.

[media][media]

Can confirm in 1.19.

Can confirm in 1.19.2.

Confirm in 24w12a, you can easily kill an enemy with mace while hold trident in the offhand.
 

I think this was fixed in 24w19a (the part about applying enchantments is still in the game, but covered under MC-3304). This could also be considered fixed in 24w18a, but riptide tridents did not work correctly in that version. In the "Affected Versions", 24w19a and 24w20a are listed; I cannot reproduce the bug in these versions, nor in any version after them.

gaspoweredpick

(Unassigned)

Confirmed

Gameplay

Normal

Combat

durability, enchantment-effect, mainhand, offhand, riptide

Minecraft 1.13, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2-pre1, ..., 1.20.4, 24w12a, 1.20.6, 24w19a, 24w20a

24w19a

Retrieved