minecraft-java-edition – Fixing Blockdata Command Issues with Scoreboard in Minecraft 1.10

minecraft-commandsminecraft-java-edition

I am using the following command:

    /blockdata 290 57 -436 
{Text1:"{\"text\":\"Cursor\",\"bold\":\"true\",\"color\":\"dark_green\"}",
Text2:"{\"score\":{\"name\":\"@p\",\"objective\":\"CursorPrice\"},\"color\":\"dark_blue\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock 290 56 -431 redstone_block 0\"}}",
Text3:"{\"score\":{\"name\":\"@p\",\"objective\":\"CursorAdd\"},\"color\":\"red\"}",
Text4:"{\"score\":{\"name\":\"@p\",\"objective\":\"CursorAmt\"}}"}

and the sign that is being updated only shows the first line, and all of the objectives have values. The command block says it was updated successfully, even though all the lines except line one are empty. Note: the clickEvent also works

Best Answer

The command works in 1.9.2 and below:

Command working

The problem you are having is caused by bug [MC-101457] in 1.9.3 and later. Unfortunately, the solution is to wait for Mojang to get around to fixing it.

In the meantime, scores in /tellraw still work, so as an alternative, you could potentially have right-clicking the sign give the scores in chat.