mojira.dev
MCPE-183321

Scoreboard Entries Starting With Hash Character Invalid With Execute Command

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

Linked issues

Comments 1

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

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

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 (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

ZambieTheBully

(Unassigned)

Unconfirmed

Multiple

Windows 10

1.21.0

Retrieved