Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-146443

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 19w12b
    • None
    • Unconfirmed

      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.

            Unassigned Unassigned
            Jkgearhart Jake Gearhart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: