mojira.dev
MC-100708

Testfor/Scoreboard with data tag gives a false negative.

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.

Comments 2

Please provide concise and clear steps to reproduce your issue.

Ticket resolved as incomplete, because no answer in a reasonable amount of time (1+ year), if it still happens, please update the ticket.

Dwittyy

(Unassigned)

Unconfirmed

Minecraft 1.9.2

Retrieved