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

Scoreboard sidebar doesn't display text components requiring resolution

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.20.3 Pre-Release 2
    • None
    • Confirmed
    • (Unassigned)

      Scoreboards don't correctly display values other than text (such as selectors or even other scores) in players' numberformats or names.

      Steps to reproduce:

      With a selector:

      /scoreboard objectives add nearest_player dummy {"text":"Nearest player"}
      /execute as @a at @s run scoreboard players display numberformat @s nearest_player fixed {"selector":"@p[distance=0.01..]"}
      

      With a score:

      /scoreboard objectives add money dummy {"text":"Money","color":"green"}
      /execute as @a run scoreboard players display numberformat @s money fixed [{"score":{"name":"@s","objective":"money"}},{"text":"$","color":"green"}]
      

      Observed result:
      Name of the player doesn't show. Instead, it shows their selector

      If it's a score what you want to show, it doesn't show anything

      Expected results:
      The player's name correctly shows and it says (in this case) the nearest player that isn't the own player
      The score is correctly shown and it says (in this case) how much money the player has.

        1. 2023-11-24_15.37.32.png
          33 kB
          SamuElChango
        2. 2023-11-24_16.13.30.png
          37 kB
          SamuElChango

            Unassigned Unassigned
            SamuElChango SamuElChango
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: