Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-108989

"score" text component does not accept names containing non-alphanumeric characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.50.20 Preview, 1.17.20.23 Beta, 1.17.10, 1.17.10.21 Beta, 1.17.10.20 Beta, 1.17.0.58 Beta, 1.17.0.56 Beta, 1.17.0.54 Beta, 1.16.220, 1.16.100, 1.16.201 Hotfix, 1.16.221 Hotfix, 1.18.2 Hotfix, 1.18.12 Hotfix, 1.18.30, 1.18.31, 1.19.0, 1.19.31 Hotfix, 1.20.15 Hotfix, 1.21.0, 1.21.51 Hotfix
    • Confirmed
    • Multiple
    • 444981

      The bug

      When using the new "score" JSON text component, you cannot reference a name that contains non-alphanumeric characters. Hyphens, underscores, and periods are accepted.

      Steps to reproduce

      • Create a new scoreboard objective with a fake player containing a non-alphanumeric character:
        /scoreboard objectives add foo dummy
        /scoreboard players set "#example" foo 1
        
      • Try to print the fake player's score value in chat:
        /tellraw @a {"rawtext":[{"score":{"name":"#example","objective":"foo"}}]}
        

      Syntax error: Unexpected "#": at ">>#<<example"

            Sprunkles Sprunkles
            Votes:
            12 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: