Mojira Archive
MC-58229

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

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"

Fixed

Eease

[Mojang] Searge (Michael Stoyke)

2014-06-20, 05:00 PM

2015-02-07, 12:48 AM

2014-06-22, 05:24 PM

1

5

Community Consensus

Minecraft 14w25b

Minecraft 14w26a