mojira.dev
MC-251555

"inventory_changed" does not trigger when swapping item into offhand from GUI

Bug:

Recipes and advancements using the "inventory_changed" trigger do not activate when a player swaps an item into their offhand from inside a chest or other GUI.

Steps to Reproduce:

  • Place a chest with an Oak Log inside.

  • Clear all recipes and advancements:

/advancement revoke @s everything
/recipe take @s *
  • Open the chest and swap the Oak Log into your offhand.

Expected Behavior:

You unlock new recipes for collecting the Oak Log immediately.

Observed Behavior:

You do not unlock the recipes until you close the chest or swap the item into a different slot.

Linked issues

Comments 0

No comments.

Kutemota

(Unassigned)

Confirmed

Platform

Normal

Inventory

1.18.2, 22w18a, 1.20.1, 1.20.4, 1.21

Retrieved