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

/testfor with fake player name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 1.5.2
    • None
    • Unconfirmed
    • Creative

      Testfor command for commands blocks doesn't work fine for non-player scores. As we can set scores for non-player, I assume we also can test non-player score as well.

      For this test, I simply put a button on a command block, with a comparator out and a redstone lamp

      /scoreboard objectives add testObj dummy
      /scoreboard players set MyCharacterName testObj 10
      /scoreboard players set FakeName testObj 10
      /scoreboard objectives setdisplay sidebar testObj
      >> OK
      /testfor @a[name=MyCharacterName,score_testObj_min=5]
      >> OK
      /testfor @a[name=FakeName,score_testObj_min=5]
      >> NOK

            Unassigned Unassigned
            Walm Walm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: