Mojira Archive
MC-28230

Objective names with "-" in it are considered invalid

I've found that, with scoreboard objectives, if the objective has a dash ("-") in the name, then the score argument for command blocks will treat it as invalid, which also displays MC-9097.

To reproduce:

  1. Start a new world and give yourself a command block.
  2. Type in the command say @p[score_Foo-bar=44]
  3. Power the command block and it should say your name.
  4. Click on the command block and remove the "-" so it should now be say @p[score_Foobar=44]
  5. Power the command block again and notice how it doesn't say your name this time.

Duplicate

NeedAGoodUsername

2013-08-07, 04:58 AM

2017-12-30, 12:13 AM

2015-11-25, 05:37 PM

3

4

Confirmed

command, command_block, objective, objectives, scoreboard

Minecraft 1.6.2, Minecraft 1.8.1-pre3

-