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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 14w26a
    • Minecraft 14w25b
    • None
    • Win8
    • Community Consensus

      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"

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

              Created:
              Updated:
              Resolved:
              CHK: