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

Scores in written books don't work properly when on a server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 14w25b
    • Fix Version/s: Minecraft 14w26a
    • Labels:
      None
    • Environment:

      Win8

    • Confirmation Status:
      Community Consensus

      Description

      Scores in written books don't work properly when on a server.

      Example 1:
      Join a server running 14w25b
      1: /scoreboard objectives add test dummy
      2: /scoreboard players set player test 1
      3: /give @p written_book 1 0 {pages:["{score:{name:player,objective:test}}"]}
      Open the book and you won't see anything

      Example 2: (This one is very weired)
      Join Singleplayer with 14w25b
      1: /scoreboard objectives add test2 dummy
      2: /scoreboard players set player test2 1
      3: /give @p written_book 1 0 {pages:["{score:{name:player,objective:test2}}"]}
      Open the book and you can see the score: "1"
      Afterwards join a server running 14w25b
      4: /give @p written_book 1 0 {pages:["{score:{name:player,objective:test2}}"]}
      Even though the objective 'test2' hasn't been added on the server yet and player 'player' has no score, the book will show you a "1"
      5: /scoreboard objectives add test2 dummy
      6: /scoreboard players set player test2 2 <- the "2" is important!
      7: /give @p written_book 1 0 {pages:["{score:{name:player,objective:test2}}"]}
      Open the book and you will still see the "1" instead of the "2"

        Attachments

          Activity

            People

            • Assignee:
              searge [Mojang] Searge (Michael Stoyke)
              Reporter:
              Eease Eease
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: