Minecraft – Making a custom book for a command mod w\ Almighty Commands

minecraft-commandsminecraft-java-edition

This is the status quo:

I have finished making the very structure of the Command Module I'm making, and I'm trying to add in a command that gives me a book that has contents in it.

I succeeded in 10% of the command, which is coloring the first part of the book, only problem is, the next part of text after it is supposed to be colored black, which it isn't.see the red part after 'The Lab'?

I've tried this post from the Minecraft Forums, however I found it unhelpful, as I've tried on what it says about inheritance.

P.S. My Minecraft version is 1.8.9.

Best Answer

Identifying The Problem

I think the problem is that you need to update the "-----" at the end to black. The part I have highlighted below shows that those are going together. (The "The Lab" and the ending "-----" both have the same red and bold.)

Picture 1

Solving The Problem

To solve this, you will want to insert this... (Between where the " and ] are; near the red.) Picture 2

Example:

/give @p written_book 1 0 {resolved:0,generation:0,author:"Ry3ks3u",title:"The Lab",pages:["[\"------------------\",\"\n-----\",{\"text\":\"The Lab\",\"color\":\"dark_red\",\"bold\":true},{\"text\":\"-----\",\"color\":\"black\"}]"]}