mojira.dev
MC-253404

/item command causes inventory slot errors

If the /item command is used to replace a player's inventory, armor, or offhand slot with a new item, and the item is then quickly removed from that slot by clicking on the item, the slot will not update correctly. When a command or the nbt target selector argument is used to read data from that slot, the game still considers the slot to be occupied by the item that was removed. It remains in this state until being updated, such as by running a /clear command or by placing a new item in that slot.

(Haven't tested this with containers or other forms of item slots yet.)

 

Images show:

The /item command used.

The /clear command reportedly clearing an item from an empty inventory due to the bugged item slot.

The nbt target selector argument also reportedly locating an item in an empty inventory slot due to this bug.

Linked issues

Attachments

Comments 2

Thank you for your report!
We're tracking this issue in MC-239935, 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
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

SD_Amra

(Unassigned)

Unconfirmed

(Unassigned)

1.19

Retrieved