mojira.dev
MC-89148

Cannot display a players score or name on a sign with commands

Cannot display a players score or name on a sign with commands

I used the command /setblock ~ ~ ~2 minecraft:wall_sign 0 replace {Text1:"{selector:\"@p\"}",Text2:"{score:{name:\"@p\",objective:\"points\"}}"}

*In the 1. line the closest players name should be displayed and in the 2. line the players score, named points, should be displayed. (It works for 1.8.8)

*Instead it just displayed the commands from the commandblock (see pictures)

Steps to Reproduce:
1. Put the command in a commandblock
2. Trigger the commandblock

Linked issues

Attachments

Comments 3

Dlawso the Really Lucky Rabbit

WAI. Per MC-83460, JSON now requires quotes around the keys.

Rasmus Bruhn Nielsen

I don't really understand where I need quotes. What is the keys?

SnipUndercover

You need to put quotes llike that:
/tellraw @a {"text":"Hello there!","color":"blue","underlined":"true"...}
Key is this, what you put in the sign/tellraw command

Rasmus Bruhn Nielsen

(Unassigned)

Unconfirmed

Minecraft 15w38b

Retrieved