Right clicking cake with empty main hand does not use item in off-hand
The bug
Right clicking a cake which cannot be eaten with an item with a right click action in the main hand will correctly use the item. However, if the cake is clicked with an empty main hand and the same item in the offhand instead, the item's action is not executed. This is inconsistent with all other blocks.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cake with an empty main hand
→ You will notice that the fishing rod is not used
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 (may no longer apply given 19w42a changes)
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
Linked Issues
relates to8
- Unresolved
Connor Steppie
Marcono1234- 15
- 6
- Confirmed
Low
- Gameplay
- Player
- animation-testing-corner cake empty-hand hand hand-animation item main-hand off-hand right-click
1.11.2 - 1.21
1.11.2 17w06a 1.12.2 18w03b 1.13 18w30b 1.13.1 1.13.2 18w47a 18w47b 18w48a 18w48b 18w49a 18w50a 19w02a 19w04a 19w08a 19w12a 19w12b 19w13a 19w13b 19w14a 19w14b 1.14-pre2 1.14-pre5 1.14.3-pre4 1.14.4 19w35a 19w36a 19w37a 19w38b 19w39a 19w40a 19w41a 19w42a 19w44a 19w45a 19w46a 19w46b 1.15-pre1 1.15-pre2 1.15-pre3 1.15-pre4 1.15-pre6 1.15-pre7 1.15.1-pre1 1.15.2-pre1 1.15.2-pre2 20w06a 20w07a 20w08a 20w09a 20w10a 20w11a 20w12a 20w15a 20w20a 20w21a 1.16-pre2 1.16-pre3 20w28a 20w29a 20w30a 1.16.2-pre1 1.16.4-rc1 1.16.4 20w46a 20w51a 21w03a 21w06a 21w17a 21w20a 1.17-pre1 1.17 1.17.1 1.18.1 1.18.2 1.19 1.19.2 1.20.1 1.21
Created Issue:
Right clicking cauldron or cake with empty hand acts successful not using item in offhand
The bug
Right clicking a cauldron or cake (when you are not hungry) with an empty mainhand acts successful. This makes the arm of the player swing and not use any item in the offhand.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cauldron with an empty mainhand
→ You will notice that your arm swings and the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
Right clicking cauldronor cakewith empty hand acts successful not using item in offhand
The bug
Right clicking a cauldron
or cake (when you are not hungry)with an empty mainhand acts successful. This makes the arm of the player swing and not use any item in the offhand.How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cauldron with an empty mainhand
→ You will notice that your arm swings and the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
relates to
relates to
Right clicking cauldron/fence with empty hand acts successful not using item in off-hand
The bug
Right clicking a cauldron or fence with an empty mainhand acts successful. This makes the arm of the player swing and not use any item in the offhand.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cauldron or fence with an empty mainhand
→ You will notice that your arm swings and the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
Right clicking cauldron/fence/cake with empty hand acts successful not using item in off-hand
[Add to category Player then delete this line]
The bug
Right clicking a cauldron or fence with an empty mainhand acts successful. This makes the arm of the player swing and not use any item in the offhand.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cauldron or fence with an empty mainhand
→ You will notice that your arm swings and the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
[Add to category Player then delete this line]
The bug
Right clicking a cauldron or fence with an empty mainhand acts successful. This makes the arm of the player swing and not use any item in the offhand.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cauldron or fence with an empty mainhand
→ You will notice that your arm swings and the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
The bug
Right clicking a ca
uldron or fence with an empty mainhand acts successful. This makes the arm of the player swing and not use any item in the offhand.How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a ca
uldron or fence with an empty mainhand
→ You will notice that your arm swings and the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
The bug
Right clicking a cake with an empty mainhand acts successful. This as of 19w42a no longer makes the arm of the player swing and not use any item in the offhand.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cake with an empty mainhand
→ You will notice that your arm swings and the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
Right clickingcauldron/fence/cake with empty handacts successfulnot usingitem in off-handRight clicking cake with empty main hand does not use item in off-hand
The bug
Right clicking a cake with an empty mainhand acts successful. This as of 19w42a no longer makes the arm of the player swing and not use any item in the offhand.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cake with an empty mainhand
→ You will notice thatyour arm swings andthe fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
The bug
Right clicking a cake with an empty mainhand acts successful. This as of 19w42a no longer makes the arm of the player swing and not use any item in the offhand.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cake with an empty mainhand
→ You will notice that the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 (may no longer apply given 19w42a changes)
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
The bug
Right clicking a cake w
ith anempty mainhand acts successful. This as of 19w42a no longer makes the arm of the player swing and not use any item in the offhand.How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cake with an empty mainhand
→ You will notice that the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 (may no longer apply given 19w42a changes)
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
The bug
Right clicking a cake which cannot be eaten with an item with a right click action in the main hand will correctly use the item. However, if the cake is clicked with an empty main hand and the same item in the offhand instead, the item's action is not executed. This is inconsistent with all other blocks.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cake with an empty main hand
→ You will notice that the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 (may no longer apply given 19w42a changes)
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
Relates to MC-160904, MC-160926,
MC-161154,MC-163936,MC-163448,MC-161259,MC-160981,MC-160902, MC-129112,MC-163863andMC-160900The bug
Right clicking a cake which cannot be eaten with an item with a right click action in the main hand will correctly use the item. However, if the cake is clicked with an empty main hand and the same item in the offhand instead, the item's action is not executed. This is inconsistent with all other blocks.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cake with an empty main hand
→ You will notice that the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 (may no longer apply given 19w42a changes)
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
Relates to MC-1609
04, MC-160926,MC-161154,MC-163936,MC-163448,MC-161259,MC-160981,MC-160902, MC-129112,MC-163863andMC-160900The bug
Right clicking a cake which cannot be eaten with an item with a right click action in the main hand will correctly use the item. However, if the cake is clicked with an empty main hand and the same item in the offhand instead, the item's action is not executed. This is inconsistent with all other blocks.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cake with an empty main hand
→ You will notice that the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 (may no longer apply given 19w42a changes)
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
Relates to MC-160926,
MC-161154,MC-163936,MC-163448,MC-161259,MC-160981,MC-160902, MC-129112,MC-163863andMC-160900The bug
Right clicking a cake which cannot be eaten with an item with a right click action in the main hand will correctly use the item. However, if the cake is clicked with an empty main hand and the same item in the offhand instead, the item's action is not executed. This is inconsistent with all other blocks.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cake with an empty main hand
→ You will notice that the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 (may no longer apply given 19w42a changes)
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
Relates to MC-160926,
MC-161154,MC-163936,MC-163448,MC-161259,MC-160981,MC-160902, MC-129112,MC-163863andMC-160900The bug
Right clicking a cake which cannot be eaten with an item with a right click action in the main hand will correctly use the item. However, if the cake is clicked with an empty main hand and the same item in the offhand instead, the item's action is not executed. This is inconsistent with all other blocks.
How to reproduce
- Place an item with right click ability like a fishing rod in your offhand
- Right click a cake with an empty main hand
→ You will notice that the fishing rod is not usedCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1 (may no longer apply given 19w42a changes)
The respective methods overriding the method net.minecraft.block.Block.onBlockActivated(World, BlockPos, IBlockState, EntityPlayer, EnumHand, EnumFacing, float, float, float) return true if the currently held item is empty.
relates to
When an item with a right click action (tested here using a fishing rod) is used while aiming at a block which has another right click action which is not relevant to the held item (tested here with flower pots and signs), the block's right-click action takes precedence over the item's. Since the right click action of the block neither opens a GUI (as in storage containers, enchantment tables, command blocks, etc.) nor does it toggle a block state (as in doors, levers, buttons, berry bushes and others), one would expect the item's action to override the block's. However, this is not the case.
Currently affected blocks are:
- signs (see
MC-166885) - wall signs (see
MC-166885) - flower pots (see MC-195095, do not cause hand animation); see also the special case MC-193010
- lecterns (see MC-195095, do not cause hand animation)
- bells (ringing; this doesn't fall under a blockstate change or gui opening, so probably not intended)
- dragon eggs (when they can't teleport)
- cake (only if the item to be used is in the offhand and the main hand is empty, see MC-114718; does not cause hand animation)
- beds (if they cannot set the spawn point)
- chests (when obstructed)
- trapped chests (when obstructed)
- ender chests (when obstructed)
- shulker boxes (when obstructed)
- decorated pot (when full)
Pressed-in buttons also block right click actions in a manner similar to flower pots, however this behaviour should be kept to stop accidental item use when pressing buttons.
Note blocks are not included here as right clicking obstructed note blocks does indeed change their block states, however this is difficult to notice.
Fixed in 19w42a. A bug remains with cake that is better described in MC-114718.
Relates to/duplicate of MC-114718.

Cake is
MC-106826.Confirmed for 1.13.1.
Affects 18w47b
Affects 18w49a
Affects 18w50a
@[~Awesoman3000], you are now the reporter.
Seems a bit differeint in 1.14.3-pre3
This is fixed for cauldrons and fences in 19w42a. If what remains is truly covered by
MC-106826then this could be closed as fixed.In 1.16.1 and 20w29a
Can confirm in 21w06a.
Can confirm in 21w17a.
Can confirm in 1.17.
Can confirm in 1.17.1.
Can confirm in 1.18.1.
Can confirm in 1.18.2.
Can confirm in 1.19.
Can confirm in 1.19.2.