It's the strangest thing. I've been trying to write a command that gives a player a written book, but the command fails due to minor syntax variations (none of which are supposed to cause an error) without giving an error message. If you leave out a single part of the syntax that is supposed to be included, the command doesn't execute at all (note that this is using command blocks because the command is too big for execution from chat). The strangest part is that the command does not execute if the first line of text in the book does not start with \n, or it gives an error that there is missing syntax. After some playing around, I have found that this holds true for this command regardless of length, so it has something to do with the execution of the command.
Attachments
Comments 4
You're forgetting quotation marks around "pages", "title" and "author" and their values.
Those are not required, only when the key/value contains a special character or a space, it needs quotes (the part with the special character only)
As for no error, make sure the command block shows previous output or the gamerule sendCommandFeedback is true (in case of function).
Okay, I'm really sorry about this. It seems this has been happening to me over and over again. I forgot the final statement at the end of the command that completes it. I'll put that back in and see if that does anything.
For the first command listed: You're forgetting quotation marks around "pages", "title" and "author" and their values.You also forgot a forward slash in the last clickEvent command.The second command is just way too long for me to check, but it's not valid JSON.