Mojira Archive
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.

Unresolved

Kutemota

2022-05-09, 05:47 PM

2024-07-02, 09:40 AM

7

6

Confirmed

Normal

Platform

Inventory

1.18.2 - 1.211.18.2, 22w18a, 1.20.1, 1.20.4, 1.21

-