mojira.dev
MC-295886

inventory_changed advancement trigger does not run when moving items into offhand from a container

When using the swap item with offhand hotkey, taking an item from a container and putting it into your offhand does not trigger the inventory_changed advancement trigger.

Steps to reproduce:
1) Download and load the attached datapack, which only contains one advancement and a function reward for that advancement
2) Place down a chest and put items into the chest
3) Observe how moving items from the chest into your inventory, with the mouse or with the 1-9 hotkeys, displays a chat message triggered by the advancement
4) Use the swap with offhand keybind to take an item from the chest and place it in your offhand (default “f”)
5) Observe how there is no chat command, because the advancement was not triggered

Linked issues

Attachments

Comments 1

Thank you for your report!
We're tracking this issue in https://report.bugs.mojang.com/servicedesk/customer/portal/2/MC-251555 , so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines -- 💬 Community Support -- 📧 Mojang Support (Technical Issues) -- 📧 Microsoft Support (Account Issues) -- ✍️ Feedback and Suggestions -- 📖 Game Wiki

Strongis13

(Unassigned)

Unconfirmed

(Unassigned)

1.21.5

Retrieved