-
Bug
-
Resolution: Duplicate
-
None
-
1.21
-
None
-
Community Consensus
-
Data Packs
The Bug:
When any container GUI is opened, swapping an item stack into/out of the container using the "Swap Item With Off Hand" key (default "F") does not trigger the "minecraft:inventory_changed" advancement trigger.
Steps to Reproduce:
- Install the attached datapack. MC-247037.zip
- Place an item in your offhand slot.
- Place down a chest or a minecart with chest and open it (advancement triggers when opening the GUI due to behaviors related to MC-273770).
- Move the cursor to any slot of the chest and press the "Swap Item With Off Hand" key.
- Observe if the advancement triggered or not while pressing the key.
Observed Behavior:
The "minecraft:inventory_changed" advancement trigger does not trigger when using the "Swap Item With Off Hand" key to swap item into/out of container.
Expected Behavior:
The "minecraft:inventory_changed" advancement trigger would trigger when using the "Swap Item With Off Hand" key to swap item into/out of container.
- duplicates
-
MC-251555 "inventory_changed" does not trigger when swapping item into offhand from GUI
- Open