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

Written Books that use Json scores do not update if the book was created after points have been added to a players score.

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • Minecraft 1.8, (10)
      Minecraft 1.8.1, Minecraft 1.8.2-pre4, Minecraft 1.8.2-pre6, Minecraft 1.8.2-pre7, Minecraft 1.8.3, Minecraft 1.8.8, Minecraft 15w39b, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13a
    • Community Consensus

      The bug

      Written Books that use Json scores do not update if the book was created after points have been added to a players score.

      How to reproduce

      Setup dummy scoreboard

      /scoreboard objectives add bug dummy
      /scoreboard objectives setdisplay sidebar bug
      

      Create Book (via command block). The book that will work.

      give @p written_book 1 0 {title:"Bug",author:"Steve",pages:[
      	"{text:'Bug score: ',extra:[
      		{color:red,score:{name:@p,objective:bug}}
      	]}"
      ]}
      

      Read open/read the book you just created.

      Give yourself a point to be added to the scoreboard.

      /scoreboard players add @p bug 1
      

      Create second book (via command block(same command as before)). This book wont work.

      give @p written_book 1 0 {title:"After",author:"Steve",pages:[
      	"{text:'Bug score: ',extra:[
      		{color:red,score:{name:@p,objective:bug}}
      	]}"
      ]}
      

      Read this book.

      Both books will show "Bug score: 1"

      Add more points.

      /scoreboard players add @p bug 5
      

      The first book will now show 6 points.
      The second will only show 1 point.

      If you reset your score the first book will go bank and the second will stay at 1 point.

          [MC-76884] Written Books that use Json scores do not update if the book was created after points have been added to a players score.

          [Mod] j_p_smith added a comment - - edited

          The issue that was reported here can no longer be reproduced. It appears many of the recent comments on this ticket are describing MC-145930 instead.

          [Mod] j_p_smith added a comment - - edited The issue that was reported here can no longer be reproduced. It appears many of the recent comments on this ticket are describing MC-145930 instead.

          Ian McCurdy added a comment - - edited

          Still in 1.15.2 except the scores won't update at all in either book (following steps to reproduce).

          Ian McCurdy added a comment - - edited Still in 1.15.2 except the scores won't update at all in either book (following steps to reproduce).

          The resolution is still awaiting responses and this is still active in 19w13a for 1.14... Can we say it's a bug still please?

          Also after the book is given and opened, there is a tag "value":"#" added into the book tag in the score:

          {X}

          area which has the scores. Why can't the score just be pulled every time the book is open instead of constantly updating?

          user-2a4c8 (Inactive) added a comment - The resolution is still awaiting responses and this is still active in 19w13a for 1.14... Can we say it's a bug still please? Also after the book is given and opened, there is a tag "value":"#" added into the book tag in the score: {X} area which has the scores. Why can't the score just be pulled every time the book is open instead of constantly updating?

          This bug still definitely happens in 1.13+ Why is it marked as resolved?

          Joshua White added a comment - This bug still definitely happens in 1.13+ Why is it marked as resolved?

          Tez Tenten added a comment -

          In 1.13 Book doesn't get the updated score when opened. A new book will get the latest values but you don't want to keep getting new books!

          Tez Tenten added a comment - In 1.13 Book doesn't get the updated score when opened. A new book will get the latest values but you don't want to keep getting new books!

          gudenau added a comment -

          Screenshot of the problem.

          gudenau added a comment - Screenshot of the problem.

          gudenau added a comment - - edited

          Same on 1.8.8 and 15w39b.

          gudenau added a comment - - edited Same on 1.8.8 and 15w39b.

          magib1 added a comment -

          Confirmed for 1.8.3.

          magib1 added a comment - Confirmed for 1.8.3.

          magib1 added a comment -

          Confirmed for 1.8.2.

          magib1 added a comment - Confirmed for 1.8.2.

          StevenNL2000 added a comment -

          A more informative title would be useful, we are not trying to create clickbait here.

          StevenNL2000 added a comment - A more informative title would be useful, we are not trying to create clickbait here.

            Unassigned Unassigned
            lucky lucky
            Votes:
            11 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: