Create a datapack with following files:
data/test/advancement/use_item.json{ "criteria": { "use_item": { "trigger": "item_used_on_block", "conditions": { "player": { "equipment": { "mainhand": { "items": "item_frame" } } } } } }, "rewards": { "function": "test:give_back" } }data/test/function/give_back.mcfunction
advancement revoke @s only test:use_item give @s item_framePlace an item frame in survival mode
The server-side item count remains unchanged, but the client-side shows a decreased item count, indicating a desynchronization.
Linked issues
Attachments
Comments 2
Thank you for your report!
We're tracking this issue in MC-299373, 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, please make use of the search feature to see if an issue you are about to report has already been reported.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki