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

Testfor/Scoreboard with data tag gives a false negative.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • Minecraft 1.9.2
    • None
    • Unconfirmed

      This bug revolves around the following command, and incarnations of it:

      /testfor @a {Inventory:[

      {Slot:103b,id:"minecraft:diamond_helmet"}

      ]}

      Using this command sometimes runs succesfully, but most of the time fails to succesfully find an entity that matches it.

      I've had two different cases:

      1) A player with a diamond helmet equipped doesn't give a true output. (Strangely, this didn't work when the player shift-and-left-clicked the helmet from their inventory, but did when it was dragged in manually. This might be a different bug entirely, though.)

      2) Changing the scoreboard of an entity with a similar data tag also gives a false negative. An armor stand with wool on it's head doesn't come back positive when the command specifies wool rather than the diamond helmet.

      This command is run on a repeating command block and doesn't work in 1.9.

            Unassigned Unassigned
            Dwittyy Dwittyy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: