When open any container gui (chest, hopper, crafting table and etc.) item command wont change item in offhand until close gui.
How to reproduce
Start server or connect to friend or create redstone timer
Execute command after open gui - chest or crafting table /item replace entity @a weapon.offhand with stick
Close gui
Attachments
Comments 3
I trying to create server side only mod that able open chest by command. And i want to disable player ability to get item or place, like spectator. I found where server handle client click, but after a while cant do any with swap action. Then i test it for vanilla non modified container and found a bug. If u think, that modified environment cant show whats is problem, i download last snapshot from official launcher and show it again.
I create world and repeat it with command block
Thank you for your report!
However, this issue is Invalid.
Your game, launcher or server is modified.
If you can reproduce the issue in a vanilla environment, please recreate the issue.
Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang.
A world which had previously been opened with a modified client might be corrupted. Please try reproducing the issue in a newly generated world.
Any plugin issues need to be addressed to the creator of the plugin or resource pack.
If you have problems on large servers like Hypixel, please contact them first as they run modified server software.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki