Under certain circumstances, the content of a writable book lingers on the client even though it has been deleted on the server while the player was not in the UI.
To reproduce
Obtain a book and quill
Type something in the book and quill, and press Done to save it
While holding the book and quill, run
/data get entity @s SelectedItem
✅ The text you wrote shows up in the outputPlace an always-active, repeating command block with the following command:
execute as @p if data entity @s SelectedItem.components."minecraft:writable_book_content".pages[0] run item replace entity @s weapon.mainhand with writable_book
This makes it so if you’re holding a book and quill with something written in it, it will be replaced with a fresh book and quill with no contentSwitch back to the book and quill from earlier, and open it
✅ It is blank (since it was replaced with a fresh one the moment you switched to it)Type something and press Done
Once again, while holding the book and quill, run
/data get entity @s SelectedItem
✅ What you just wrote is not present in the book’s dataOpen the book and quill
❌ What you just wrote is still thereThrow out the book and pick it up again, or reload the world
Open the book and quill
✅ What you wrote is gone
This only seems to happen when the item
command is being run every tick while the game is running normally (i.e. you aren’t using the tick
command to step forward one tick at a time). Very curious.
When you say add it to #minecraft:tick, how is this done? Please provide complete reproduction steps