mojira.dev
MC-48424

New "/tellraw @selector" command does not let you use @selector as name in the json message

If you use any @selector, and not a player name in the format of the new command:

/tellraw @p {text:"<text> ",extra:[{score:{name:"<issue is here>",objective:"<objective>"}},{text:"<text>"}]}

then it will result in a "?" instead of a "#" when trying to display the player's (or any selector chosen) score.

Example:

Input (sorry for possibly strange format):

/tellraw @p[score_VaultBars_min=1] {text:"You have withdrawn 1 Iron Bar from your vault, and have ",extra:[{score:{name:"@p",objective:"VaultBars"} },{text:" Iron Bars still currently stored."}]}

Output:
You have withdrawn 1 Iron Bar from your vault, and have ? Iron Bars still currently stored.

Comments 3

Confirmed.

If this is not fixed, the score display feature will not be portable for servers and adventure maps.

You can't use selectors like @p in the components like you showed it in the example. Try to use * instead, that's how I implemented it and it should work.

Ah, that's awesome! Thank you.

Jordan Peterson

michael

Unconfirmed

Minecraft 14w07a

Retrieved