mojira.dev
MC-98224

JSON signs with scoreboard objectives erase their block data upon chunk load

Basically the title. If a JSON sign has a scoreboard objective tag on it, all of its block data will be erased upon world load.

Steps to reproduce:

1. Create a new world
2. run the following commands:

/scoreboard objectives add hi dummy
/scoreboard players set @p hi 100

3. place a sign down

4. change the block data of the sign with the following command :

/blockdata x y z {Text1:"[\"\",{\"text\":\"hi\"}]",Text2:"[\"\",{\"score\":{\"name\":\"@p\",\"objective\":\"hi\"}}]"}

5. log out of the world

6. log back in

The sign's block data should be gone now.

Code analysis: https://bugs.mojang.com/browse/MC-98224?focusedCommentId=293008&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-293008

Linked issues

Comments 25

Hi,
try to use this command :

/blockdaya x y z {Text1:"{\"text\":\"hi\"}",Text2:"{\"score\":{\"name\":\"@p\",\"objective\":\"hi\"}}"}

Tell me if your problem is resolved. 🙂

Nope. How is this any different from the command I posted?

@unknown it doesn't start with [\"\", within the tags

@unknown that makes absolutely no diffrence

Okay, could you give me the map where this bug is occuring please ?

why don't you just try it yourself in your own world? the steps are given, including the command

15 more comments

Confirmed for 1.10-pre1.

Confirmed for 1.10-pre2

NOT FIXED!

Broken signs can't be fixed, does this still affect newly places signs?

score doesn't work whatsoever for me (being MC-101457).

Can confirm fixed. However MC-101457 persists.

Ely G

michael

Confirmed

Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, ..., Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1

Minecraft 1.10 Pre-Release 2

Retrieved