Minecraft
  1. Minecraft
  2. MC-47028

@e selector does not accept scoreboard parameters in non-player entities.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 14w04b, Minecraft 14w05b, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a
    • Fix Version/s: Minecraft 14w10a
    • Security Level: Minecraft - Public (Viewable by everyone)
    • Labels:
      None
    • Environment:

      Windows 7, Java 7 Update 51

    • Confirmation Status:
      Unconfirmed

      Description

      When using commands such as "/testfor @e[score_objectiveName_min=3]" all non-player entities will be ignored. For example, if a player has a score of 3 on objectiveName and a pig also has a score of 3, the /testfor command will find the player but not the pig. This also applies to other commands such as "/tp @p @e[score_objectiveName_min=3,c=-1]".

      This problem can be replicated by starting a new world and typing these commands:

      /scoreboard objectives add objectiveName dummy

      /scoreboard objectives setdisplay sidebar objectiveName
      (This just shows what entities have a score in that objective; it's not part of the bug.)

      /summon Pig

      /scoreboard players set @e[type=Pig] objectiveName 3
      (The pig's UUID should show up in the sidebar with a score of 3, proving it has been set.)

      /testfor @e[score_objectiveName_min=3]
      (There should be no output if the bug happens.)

      /scoreboard players set @p objectiveName 3
      (Sets your own score to 3, your name should appear in the sidebar.)

      /testfor @e[score_objectiveName_min=3]
      (This time the command will find you, but still not the pig. This bug also happens with all other entities besides pigs.)

        Issue Links

          Activity

          Hide
          Zac added a comment -

          This is still the case in 14w08a, and it happens on mac. It is ruining my map, so I hope it gets fixed soon.

          Show
          Zac added a comment - This is still the case in 14w08a, and it happens on mac. It is ruining my map, so I hope it gets fixed soon.
          Hide
          Frank Steffahn added a comment -

          I can confirm that this is an issue in 14w08a!

          Show
          Frank Steffahn added a comment - I can confirm that this is an issue in 14w08a!
          Hide
          Frank Steffahn added a comment -

          This issue duplicates the issue: MC-44571
          But this issue is more popular, the description is more detailed and the affected versions are more up to date.

          Show
          Frank Steffahn added a comment - This issue duplicates the issue: MC-44571 But this issue is more popular, the description is more detailed and the affected versions are more up to date.
          Hide
          Sebastian K added a comment - - edited

          seems to be back in 14w27b when scoreboard objectivess have an "_" in it

          Show
          Sebastian K added a comment - - edited seems to be back in 14w27b when scoreboard objectivess have an "_" in it
          Hide
          [Mod] Anon Ymus added a comment -

          That is MC-25174. Please do not create another report.

          Show
          [Mod] Anon Ymus added a comment - That is MC-25174 . Please do not create another report.

            People

            • Assignee:
              [Mojang] Searge (Michael Stoyke)
              Reporter:
              emeraldfyr3
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: