mojira.dev
MC-311331

Offhand item action is incorrectly triggered when taking an item from an shelf

Description: When the player takes an item out of an oak shelf while holding a usable item (e.g., a firework rocket) in the offhand, the offhand item’s right‑click action is performed unintentionally, even though the interaction is solely directed at the shelf. This causes unwanted effects such as launching fireworks, eating, or drinking.

Steps to reproduce:

  1. Place an oak shelf on a solid block.

  2. Put a grass block into the oak shelf (by right‑clicking on the shelf with the grass block in the main hand).

  3. Move a firework rocket to the offhand slot (main hand should be empty or hold an item without a right‑click action).

  4. Right‑click on the oak shelf to take the grass block out.

Observed result: The grass block is successfully removed from the shelf, but at the same time the offhand firework rocket is ignited and launches (or its corresponding action is executed).

Expected result: Only the grass block should be taken from the oak shelf. The offhand rocket should remain unused and its action should not be triggered, because the player is interacting with the shelf, not with the offhand item.

Linked issues

Attachments

Comments 2

Thank you for helping us improve Minecraft! We saved your files:

[media][media]

sorry,title is 【Offhand item action is incorrectly triggered when taking an item from an oak shelf】

1145

(Unassigned)

Confirmed

26.3 Snapshot 9

Retrieved