When interacting with shelves whilst holding items obtained through /replaceitem or /give with {“item_lock”:{“mode”:”lock_in_slot”}} the items are placed and removed from the inventory.
Expected Result: Nothing happens when interacting with locked items on shelves (the same as item frames)
Actual Result: The item is placed in the shelf and removed from player’s inventory
How to Reproduce:
1. Run the command: /give @s diamond 1 0 {“item_lock”:{“mode”:”lock_in_slot”}}
2. Place a shelf of any kind
3. Make sure you are on survival or adventure
4. Interact with one of the shelf’s 3 empty spaces whilst holding the diamond
Thank you for your report!
We're tracking this issue at MCPE-230341, 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)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki