mojira.dev
MC-307812

/scoreboard commands that require a single score holder accept * but always fail

The bug

The special score holder * representing all entries on the scoreboard only works correctly in arguments that accept multiple score holders. Namely:

  • /execute store success|result score <holder>

  • /scoreboard players add|remove|set|reset|enable <holder>

  • /scoreboard players display name|numberformat <holder>

  • /scoreboard players operation <holder> ... <holder>

  • /team join|leave ... <holder>

There are other arguments that only accept a single score holder:

  • /execute if|unless score <holder>

  • /scoreboard players get|list <holder>

When * is used in these commands, the command parses but always fails with “No relevant score holders could be found.” This error message is misleading. It should be a syntax error, just like when non-limited selectors are used.

How to reproduce

  1. /scoreboard players get @e test

  2. /scoreboard players get * test

Expected result

Both commands should be a syntax error

Observed result

Second command parses but always fails

Comments 0

No comments.

tryashtar

(Unassigned)

Confirmed

(Unassigned)

26.1.2, 26.2 Snapshot 5

Retrieved