So I want to display the value a scoreboard has every time a player clicks on the item. I am missing the bit to display the scoreboard. Is there a command for that or would I need to use something hardcoded like json /execute @p[scores={value=1}] run say Value is 1 /execute @p[scores={value=2}] run say Value is 2 /execute @p[scores={value=3}] run say Value is 3 etc.
#Scoreboard display
1 messages · Page 1 of 1 (latest)
you can use tellraw and titleraw, which are just like /tell and /title, except they accept rawtext.
with rawtext, you can add score values, translations and entities inbetween text
the command would be:
/tellraw @p {"rawtext":[{"text":"Value is "},{"score":{"name":"@p","objective":"value"}}]}
But when I run that same command in game it works?
/tellraw @p {"rawtext":[{"text":"Value is "},{"score":{"name":"@p","objective":"one_block_c"}}]}```