After using a custom book editor, who was working for 1.20.2, the book turned corrupted in 1.20.4. See the attachments for the difference.
The formatted picture with underlined text and colored text is from 1.20.2
The text without colors and some nonsense is from 1.20.4
The same command is used. By converting an old world with book in a lectern (1.20.2) to the newest version (1.20.4) the same thing happens, the book in the lectern turns corrupted.
How to reproduce:
Go to [this book generator|http://example.com] (link: https://minecraft.tools/en/book.php)
Make a book with some formatted text.
Give the command in a command block in 1.20.2 and execute it. Place a lectern in the world with the book, if you want to check it in the new version.
No problem: the text is identic to the preview on the website.Convert the world to the newest version (1.20.4) or make a command block with the same command as before in a 1.20.4 world. Execute and you will find a corrupted version of the book.
Linked issues
is duplicated by 2
relates to 1
Attachments
Comments 7
It is not; manually written custom books that follow the changes of that snapshot work fine.
This has to be brought up to the generator creator.
I don't know for what version the generator is, but I think that it is a bug, when the same world is not compatible on two versions.
The command for the book is this one, if you want to reproduce: /give @p written_book{pages:['["",{"text":"SPIELHILFE","bold":true,"color":"yellow"},{"text":"\\n","color":"reset"},{"text":"Parkour:","underlined":true},{"text":" Wähle zwichen
nverschiedenen Levels
nund schaffe sie. Du
nbekommst garantiert
neine Belohnung!\\n\\n","color":"reset"},{"text":"Backrooms: ","underlined":true},{"text":"Bezwinge
ndie verschiedenen
nEbenen: diesen Modus
ngibt es auf keinem
nanderen Server!","color":"reset"}]','["",{"text":"Spleef:","underlined":true},{"text":" Du bekommst eine Schere und einen Spleef-Stick. Der, der als letztes in die Lava fällt, gewinnt. Max. 4 Spieler. Unendlicher Modus.\\n\\n","color":"reset"},{"text":"Duelle:","underlined":true},{"text":" Ein 1v1 mit ausgeglichenen Waffen und Belohnungen. ","color":"reset"},{"text":"Sammle Nexuscraft-XP.","color":"dark_aqua"}]','["",{"text":"Tycoon: ","underlined":true},{"text":"In Kürze kommt ein Modus, den es nur auf Nexuscraft gibt! Baue Erze oder Holz ab, gehe in neue Dimensionen und versuche, so viel Geld wie möglich zu bekommen!\\n\\n","color":"reset"},{"text":"MLG-Elite + Herausforderung:","underlined":true},{"text":" Schild in der Lobby rechtsklicken.","color":"reset"}]','["",{"text":"Dropper:","underlined":true},{"text":" Schaffe drei Level in drei Dimensionen und bekomme eine Belohnung!\\n\\n","color":"reset"},{"text":"CTF (Capture The Flag):","underlined":true},{"text":" Ein 1v1, indem dein Ziel ist, die Flagge deines Gegners mit einer Schere zu zerstören. Bekomme ","color":"reset"},{"text":"Nexuscraft-XP","color":"dark_aqua"},{"text":"!","color":"reset"}]','["",{"text":"Events:","underlined":true},{"text":" Events sind Maps oder Spielmodi, die nur während einer Saison verfügbar sind.\\n\\n","color":"reset"},{"text":"Arena:","underlined":true},{"text":" Teste deine Schwerter und Rüstungen gegen Dummys und starke Gegner.\\n
nSkywars: Ein neuer Spielmodus kommt in","color":"reset"}]','{"text":"das Spiele-Sortiment von Nexuscraft. Spiele mit 2 bis 4 Spielern und töte alle deine Gegner. Ein Seelenbaum spawnt nach einiger Zeit in der Mitte der Map: wer den Loot auf dieser Insel bekommt, hat praktisch schon gewonnen. Spielmodus in Entwicklung, schreibe Vorschläge"}','["",{"text":"an die Alphas!\\n\\n"},{"text":"Bogenschießen:","underlined":true},{"text":" Verbessere deinen Aim mit einem neuen System, wo deine Schussgenauigkeit in % gemessen wird. Schaffe 100%!\\n
nAndere Spielmodi:
nDieses Buch ist möglicherweise nicht","color":"reset"}]','["",{"text":"up-to-date. Rechtsklicke die Karottenangel in deinem Inventar, und klicke danach auf die Tür, um ALLE Modi auszuprobieren.\\n\\n"},{"text":"WICHTIG:","bold":true,"underlined":true,"color":"red"},{"text":" Netzwerk-Regeln","color":"reset","underlined":true},{"text":"
nNatürlich muss es bei so vielen Spielen auch Regeln und wichtige Hinweise geben!","color":"reset"}]','{"text":"1. Cheaten/Hacken/X-Ray nicht erlaubt.
n2. Manipulation der Servertechnik nicht erlaubt.
n3. Achte auf angemessene Sprache im Chat.
n4. Nimm dieses Buch nicht mit.\\n\\nHINWEISE:
n1. Gebe zur Sicherheit"}','{"text":"deine Items vor einem Spiel immer in eine Enderchest, wenn sie vorgeschlagen wird. Dein Inventar wird möglicherweise gelöscht.
n2. Verlasse den Server nicht während eines Minigames.
n3. Schreibe \\"gg
" statt \\"ez\\"!
n4. Den Anweisungen von Alphas ist"}','["",{"text":"unbedingt Folge zu leisten.
n5. Das Fälschen von einem Rang ist verboten.\\n\\n"},{"text":"Diese Regeln und Hinweise zu ignorieren oder zu verachten, wird mit einem Bann bestraft.","bold":true,"color":"red"},{"text":"
n ","color":"reset"}]','["",{"text":"Alphas brauchen keinen
nGrund, um Leute zu bannen.","bold":true},{"text":"\\n
n- maxefaxe11\\n","color":"reset"},{"text":"Alpha","italic":true}]'],title:"SPIELINFOS UND REGELN",author:maxefaxe11,display:{Lore:["Erhalte Infos über Spiele und über die Regeln des Servers!"]}}
As @unknown said, changes were introduced, and json handling became more strict, as mentioned in the changelogs; the fact that your malformatted command is no longer accepted is not a bug. "reset" is not a valid color name. Previously it got ignored, but no more; as part of the changes it now throws an error.
Report this to the generator author, as it's their problem to fix, and not a bug with the game.
For the record, I have tested both the command here in the comments and in MC-268964, and in both cases, if the book is generated in 1.20.2 and that world is loaded in 1.20.4, the book gets migrated correctly. For instance, the "reset" field is completely omitted in the new book.
It seems like the book might have been regenerated by some command or datapack that contains the outdated and now invalid command, but it doesn't actually corrupt the in-game item.
Is the book generator meant for 1.20.4? 23w40a introduced some changes that need to be taken into account. It's expected that some things break in newer versions.