Mojira Archive
MC-113002

Carrot on a stick acts client-side always as if it was not successfully used

The bug

When using a carrot on a stick while riding a pig the carrot on a stick always acts as if it was not successfully used client-side. This means that if you hold an item in your offhand, that item will be used as well.

How to reproduce

  1. Spawn a pig and give it a saddle
  2. Mount it, put a carrot on a stick in your mainhand and another item with right click ability in your offhand, for example a fishing rod
  3. Right click with the carrot on a stick
    → You will see that the fishing rod was used as well

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The method net.minecraft.item.ItemCarrotOnAStick.onItemRightClick(World, EntityPlayer, EnumHand) always returns EnumActionResult.PASS client-side.

Unresolved

Marcono1234

2017-01-30, 12:10 AM

2024-12-07, 06:07 PM

11

6

Confirmed

(Unassigned)

carrot_on_a_stick, client-side, pig, pig-riding, right-click, use-item

Minecraft 1.11.2 - 1.21.4Minecraft 1.11.2, Minecraft 1.13.1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 19w03c, Minecraft 19w04b, 1.15.2, 1.16.2, 1.16.4, 20w48a, 24w21b, 1.21.4

-