I want to combine some text and then a score from a scoreboard but I cannot get this to work.

This is what I have currently:

/tellraw @a {"text":"test","score":{"name":"player","objective":"scoreboard"}}

When I run the command it only displays the text but not the score. What do I need to do?

New contributor
skitch is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

/tellraw can directly use an array:

/tellraw @s [{"text":"abc"},{"text":"123"}]

Everywhere else you need "extra", in which you can then use arbitrarily many components again:

/setblock ~ ~ ~ oak_sign{Text1:"{\"text\":\"abc\",\"extra\":[{\"text\":\"123\"},{\"text\":\"lalala\"}]}"}

Your Answer

skitch is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.