mojira.dev
MC-146443

The raw JSON "score" function does not work properly with block/item names and lore.

After creating an objective, (let's call that objective "test_objective" for this example), and setting a score for a player, (let's use @p for this example), in /tellraw commands, that score is accessible which is expected. Example: 

/tellraw @p {"score":{"name":"@p","objective":"test_objective"}}

Prints the nearest player's score in test_objective to them.

However, this does not work properly when using it in the context of an item name or item lore. Example:

/give @p minecraft:fishing_rod{display:{Name:'{"score":{"name":"@p","objective":"test_objective"}}'}}

Should give the nearest player a fishing rod with that player's score as the name of the fishing rod however this does not work. A fishing rod with a blank name is given instead.

Linked issues

Comments 2

It also does not work with the 'nbt' context either.

Thank you for your report!
We're tracking this issue in MC-131328, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit

Jake Gearhart

(Unassigned)

Unconfirmed

Minecraft 19w12b

Retrieved