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

Written Book Raw JSON Bug With Cheats Off / Not opped players

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.8.1-pre1, Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.9, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 1.10.2
    • None
    • Windows 8
    • Community Consensus

      Written Book Raw JSON Bug With Cheats Off

      I expected this command:

      give @p written_book 1 0 {title:"Stats",author:"Architect",pages:["{\"text\":\"Times Won: \",\"color\":\"dark_green\",\"extra\":[{\"score\":{\"name\":\"@p\",\"objective\":\"Wins\"}},{\"text\":\" Times Lost: \",\"color\":\"red\",\"extra\":[{\"score\":{\"name\":\"@p\",\"objective\":\"Losses\"}}]}]}"]}
      

      to display the holder's scores for Wins and Losses, without Cheats being enabled.

      However, when I hold this book it displays this text:"{text:'Times Won: ',color:'dark_green',extra:[{score:{name:'@p',objective:'Wins'}},{text:' Times Lost: ',color:'red',extra:[{score:{name:'@p',objective:'Losses'}}]}]}", this only occurs when Cheats are off, when Cheats are on, it does exactly what it should.

      Steps to Reproduce:
      1.Start a Creative World With Cheats
      2.Give Yourself a Written Book With Any Form of Raw JSON Coding.
      3.Edit The World to Disable Cheats
      4.The Book Will Fail to Execute The Coding, Displaying The Code Itself In It's Place

            Unassigned Unassigned
            Paracelsus Caleb Charles Coldiron
            Votes:
            23 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: