Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-78737

Problem with /summon and clickable text in written books

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.8.3
    • None
    • Unconfirmed

      So I'm trying to summon an armor stand with a custom name at my position using clickable text in a written book. The problem is I can't give myself the book, instead I get an error message:

      [19:06:23] Data tag parsing failed: Unexpected token 'G' at: GuardianCircle",CustomNameVisible:1,Invulnerable:1b,Invisible:1b,NoGravity:1b}\"},hoverEvent:{action:show_text,value:\"Summons a circle that\nheals ❤❤ per second\nfor 10 seconds\"},extra:[{text:\"\n\nPlace Holder\",color:dark_gray,clickEvent:{action:run_command,value:\"/say Place Holder Command\"},hoverEvent:{action:show_text,value:\"Place Holder\"}}]}"
      

      Here is the original command:

      /give ricochet52 minecraft:written_book 1 0 {title:"[Spell Tome]",author:"ricochet52",pages:["{text:\"Guardian Circle\",color:gold,clickEvent:{action:run_command,value:\"/summon ArmorStand ~ ~ ~ {CustomName:"GuardianCircle",CustomNameVisible:1,Invulnerable:1b,Invisible:1b,NoGravity:1b}\"},hoverEvent:{action:show_text,value:\"Summons a circle that\nheals ❤❤ per second\nfor 10 seconds\"},extra:[{text:\"\n\nPlace Holder\",color:dark_gray,clickEvent:{action:run_command,value:\"/say Place Holder Command\"},hoverEvent:{action:show_text,value:\"Place Holder\"}}]}"]}
      

      I tried changing the /summon command in the book to a /say command and it worked, so the clickable text is fine. I looked up the error message and apparently I have to escape quotation marks so I tried the method (here), but that didn't work. Instead I get a written book with half of the original command on the front page. Executing the /summon command in a command block successfully summons the armor stand with the proper name and data tag.

            Unassigned Unassigned
            ricochet52 Nathan Burdick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: