mojira.dev
MC-305036

Consumable items in the off hand are used when taking an item from a shelf with an empty main hand

Steps to Reproduce:

  1. Place any item in a Shelf

  2. Put an item that is consumed upon use in your offhand, e.g. a Snowball

  3. Right-click the Shelf to take the original item out with an empty hand

Observed Results:  

Offhand item is consumed when taking an item from a Shelf.

Expected Results:  

Item is taken from Shelf without the offhand item beind consumed.

Linked issues

Comments 2

This also happens when attaching a mob to a fence with a leash, but not when unleashing the mob from the fence.

Can confirm for 26.3.

Also, this happens with any item in the off-hand that does something on right-click.
I tested this with blocks, food, potions, spawn eggs, fishing rods, bows, spears and shields.

Entityyy

(Unassigned)

1533974

Confirmed

Expansion A

Normal

Input, Items

1.21.11

Retrieved