-
Bug
-
Resolution: Won't Fix
-
None
-
Minecraft 1.11.2, Minecraft 1.12, Minecraft 1.12.2, Minecraft 17w47b, Minecraft 18w01a, Minecraft 18w03b, Minecraft 18w11a, Minecraft 1.13-pre1, Minecraft 1.13.1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w45a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w04b, Minecraft 19w05a, 1.15.1, 1.15.2 Pre-Release 1, 1.15.2, 1.16.2, 1.16.4, 20w46a, 20w48a, 21w03a, 21w05b, 21w06a, 21w13a, 21w15a, 21w17a
-
Confirmed
-
Items
The bug
When you right click with a carrot on a stick it always increases the usage statistic value for it even if you did not really use it.
I know that this is a technique used by map makers, but it would be better to have a generic way to detect right clicks than to rely on situations like this.
How to reproduce
- Add an objective with the minecraft.used:minecraft.carrot_on_a_stick criteria, set it to display on your sidebar, and set your score to 0 so it displays
/scoreboard objectives add carrotOnAStick minecraft.used:minecraft.carrot_on_a_stick /scoreboard objectives setdisplay sidebar carrotOnAStick /scoreboard players set @s carrotOnAStick 0
- Right click with a carrot on a stick while not riding a pig
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.item.ItemCarrotOnAStick.onItemRightClick(World, EntityPlayer, EnumHand) always increases the usage statistic value.
- relates to
-
MC-136681 Debug Stick use statistic increases when not allowed to use it
- Resolved