Steps to Reproduce:
Go into creative gamemode
Place a repeating unconditional always active command block with the command /execute if entity @e[name=<GamerTag>,nbt={Inventory:[{Slot:-106b}]}] run clear <GamerTag>
Place a chain command block that is conditional and always active that the repeating command block leads towards with the command /give <GamerTag> stone
Get one piece of stone and place it in your inventory
Open your inventory and go to the survival inventory tab.
While hovering over stone block, press the swap item with offhand button twice
Type /data get entity <GamerTag> Inventory Into your chat
Observed Results:
Your inventory shows you have a piece of stone in your offhand but the /data command says you have a piece of stone in Slot:0 or your first slot
Expected Results:
The piece of stone should be shown in your first slot and not your offhand
Notes:
You can do this bug with any item just change which item the command block gives you. Once you are in this state you can select any slot except for your first one in your Hotbar and when you try to place your offhand block down it appears then instantly disappears.
Environment
Vanilla 1.17.1
Linked issues
duplicates 1
Attachments
Comments 4
Please attach a screenshot of this occurring while the F3 debug screen is enabled.
This issue is being temporarily closed as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
This issue is actually a duplicate of MC-239935.
Thank you for your report!
We're resolving and linking this ticket forward as a duplicate of MC-239935, as that ticket contains more detailed information and/or has already been triaged by Mojang.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
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.
Please provide some additional screenshots or videos of this issue occurring whilst the F3 debug screen is enabled.