Mojira Archive
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

Duplicate

ZambieTheBully

2024-06-24, 07:44 PM

2024-12-02, 11:40 AM

2024-12-02, 11:35 AM

0

0

Unconfirmed

1.21.0

-