mojira.dev
MC-268964

Written Book with custom actions no longer work if they are too long.

I got a book with a bunch of commands from a command block on my server, but when I opened it the actions were improperly formatted as if they were normal text. I experimented for a bit, and found that this only happens if the length of the actions exceeds one page, which is almost always the case. I'm not sure which version the bug appeared in but I do know books like this were working around 1.19

[media]

Linked issues

Attachments

Comments 3

Did you get the book before upgrading to 1.20.4, where it previously worked, and then after upgrading it did it break? Or did you use a command in 1.20.4 that used to work before, and that new book did not work correctly?

In either case, please provide the full command used to get that book.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Did you get the book before upgrading to 1.20.4, where it previously worked, and then after upgrading it did it break? Or did you use a command in 1.20.4 that used to work before, and that new book did not work correctly?

Both, actually. The command's VERY long so here's a shortened version which has the same issue:

/give @p written_book{pages:['["",{"text":"Demonstration
n","color":"light_purple","hoverEvent":{"action":"show_text","contents":"Stuff lol"}},{"text":"ClickThis","underlined":true,"color":"light_purple","clickEvent":{"action":"run_command","value":"/tp @s 1421 68 -2308"},"hoverEvent":{"action":"show_text","contents":"Stuff lol"}},{"text":"\\n
n","color":"reset","hoverEvent":{"action":"show_text","contents":"Stuff lol"}},{"text":"Defense","underlined":true,"color":"dark_blue","clickEvent":{"action":"change_page","value":2},"hoverEvent":{"action":"show_text","contents":"Stuff lol"}},{"text":"\\n
n","color":"reset","hoverEvent":{"action":"show_text","contents":"Stuff lol"}},{"text":"Offense","underlined":true,"color":"dark_blue","clickEvent":{"action":"change_page","value":3},"hoverEvent":{"action":"show_text","contents":"Stuff lol"}},{"text":"\\n
n","underlined":true,"color":"dark_blue","hoverEvent":{"action":"show_text","contents":"Stuff lol"}},{"text":"Potions","underlined":true,"color":"dark_blue","clickEvent":{"action":"change_page","value":4},"hoverEvent":{"action":"show_text","contents":"Stuff lol"}},{"text":"\\n
n","color":"reset","hoverEvent":{"action":"show_text","contents":"Stuff lol"}},{"text":"Blocks","underlined":true,"color":"dark_blue","clickEvent":{"action":"change_page","value":5},"hoverEvent":{"action":"show_text","contents":"Stuff lol"}},{"text":"\\n
n","underlined":true,"color":"dark_blue","hoverEvent":{"action":"show_text","contents":"Stuff lol"}},{"text":"Strategies","underlined":true,"color":"dark_blue","clickEvent":{"action":"change_page","value":6},"hoverEvent":{"action":"show_text","contents":"Stuff lol"}}]'],title:"PVP Kit Book",author:"https://minecraft.tools/en/book.php",display:{Lore:["A Book With All Your PVP Needs!"]}}

Thank you for your report!
We're tracking this issue in MC-267619, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as invalid. Please take a look at the parent ticket (MC-267619) and see if an explanation is provided there in the description of the ticket or in the comments for why this issue is invalid.

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

Aiden Mccraney

(Unassigned)

Unconfirmed

(Unassigned)

book-and-quill, item, text, written-book

1.20.4

Retrieved