Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-105920

"score_..." and "score_..._min" parameters with a dash in the objective are not counted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.10.2
    • None
    • Unconfirmed

      Scoreboard objectives with a - (dash) in the name of the objective are valid objectives. They can be created, deleted, have entities with a score of that objective, and so on. One thing that they cannot be used for at the moment is selecting entities. When a score_... or a score_..._min parameter is added to a selector using an objective with a dash, it is treated as nonexistent.

      To reproduce:

      Step 1:
      Run the following:

      /summon ArmorStand ~ ~ ~ {Tags:["Test-tag"]}
      

      Step 2:
      Run the following:

      /testfor @e[type=ArmorStand,tag=Test_tag] (fails)
      /testfor @e[type=ArmorStand,tag=Test-tag] (succeeds)
      /testfor @e[type=ArmorStand,tag=Test-tag,score_Test_obj=5] (fails)
      /testfor @e[type=ArmorStand,tag=Test-tag,score_Test-obj=5] (succeeds, what?)
      

      It's a fairly minor bug, but I would like to see it fixed expediently, as - is a useful character to keep objective names organized.

            Unassigned Unassigned
            Ozonified Ozone Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: