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

Scoreboard Entries Starting With Hash Character Invalid With Execute Command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21.0
    • None
    • Unconfirmed
    • Multiple

      Summary
      Creators can use the hash character to create private scores for an objective. Sited from the official creator forms for Bedrock Edition.

      Create an In-World Game with Commands

      If we name our fake players #red, #green, and #blue, the hash (#) at the start of each name will prevent our fake players from appearing in the list of scores on the sidebar.

      This is accurate as the scoreboard command supports this features. The following is a valid command.

      scoreboard players set #variable number 99

      However when using the execute command to test this entry results in an invalid command. The following is an invalid command.

      execute if score #variable number matches 99 run say test completed 

      Provides syntax error: Unexpected "#": at " if score >>#<<variable n"

      Impact

      • Creators cannot use private entries properly when using the execute command.

      Expected

      • The hash feature supported with the scoreboard command is recognized by the execute command and any other possibly affected commands.

      Source

            ZambieTheBully ZambieTheBully
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: