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

Written book with json data not formatting right

XMLWordPrintable

    • Unconfirmed

      How to reproduce: Run the example command provided by Searge ( http://www.reddit.com/r/Minecraft/comments/28gm8z/12w25a_snapshot_and_1710_prerelease/cib2v8g?context=2345678 ):

      /give @p written_book 1 0 {title:"Getting around",author:"Searge",pages:["{text:\"Welcome, \",extra:[{selector:\"@p\",color:red},{text:\"\n\nthis is your list of destinations:\n\n\"},{text:\"1. \",color:orange,extra:[{text:\"Spawn\",color:dark_green,bold:true}],hoverEvent:{action:show_text,value:\"This worlds spawn point\"},clickEvent:{action:run_command,value:\"/tp @p -305 56 169\"}},{text:\"\n\"},{text:\"2. \",color:orange,extra:[{text:\"Home\",color:dark_green}],hoverEvent:{action:show_text,value:\"Your main base\"},clickEvent:{action:run_command,value:\"/tp @p 5 56 96\"}},{text:\"\n\"},{text:\"3. \",color:orange,extra:[{text:\"Mine\",color:dark_green}],hoverEvent:{action:show_text,value:\"The old mines\"},clickEvent:{action:run_command,value:\"/tp @p 15 56 -318\"}},{text:\"\n\nPlease click one of them, \"},{selector:\"@p\",color:red}]}"]}
      

      Then open the book and, if your username is sufficiently long, observe how only the part of your username that wrapped into a new line will be colored. See attached screenshot.

            searge [Mojang] Searge (Michael Stoyke)
            redstonehelper [Mod] redstonehelper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: