This can only be tested on multiplayer or if you open singleplayer to LAN, because the game pauses when opening a book in non-LAN singleplayer.
When you open a written book, and the book is then modified, or the book deleted, the gui isn't updated nor closed.
Steps to reproduce:
Make a small command block setup as shown in the image
First command block (with button) has the commanditem replace entity @p hotbar.0 with minecraft:written_book{title:"Test Book",author:"You",pages:['{"text":"Test","clickEvent":{"action":"run_command","value":"/say hi"}}']}
The second command block has
item replace entity @p hotbar.0 with minecraft:written_book{title:"Test Book",author:"You",pages:['{"text":"Changed book"}']}
Press the button
Open the book in your hotbar before the second command block is powered
Wait for the second command block to run
Observe how the hand indicated the item changed, but the gui didn't update.
Click the text
Observe how the say command runs, while the player should no longer having access to it.
Replace the second command with
clear @p minecraft:written_book
And repeat steps 2 and after; notice the same result, even with the book gone that the gui doesn't disappear.
Attachments
Comments 4
Thank you for your report!
After consideration, the issue is being closed as Invalid.
You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Still an issue as of 1.18.1