The testfor command won't detect the Glowing tag for entities. This happens for all entities including mobs and players.
The command I used was:
/testfor @a {Glowing:1b}
I tested to make sure I was using the right syntax by using:
/testfor @a {OnGround:1b}
I assumed the Glowing tag was supposed to detect if the entity has the Glowing effect, given by a spectral arrow or by commands. It just comes up with the error:
[06:13:29] <player> did not match the required data structure
The screenshot shows me using the command in chat, but it behaves the same using command blocks too.
Attachments
Comments 3
The potion effect does not set the root Glowing
tag to 1. That tag is instead to be used as a 'permanent' glow without the need for potion effects (and in the source with 1.9 MCP, the potion effect is ignored if the Glowing
tag is set to 1, further enforcing that it's meant to be that way).
You need to detect the potion effect instead:
/testfor @a {ActiveEffects:[{Id:24b}]}
The Glowing tag is separate from the glowing effect, you got the effect, so you should test for the effect in ActiveEffects instead.
Glowing is only used on mobs who have the tag enabled during summon or with /entitydata, it's not set when you get the effect, it's identical to the effect, but it's everlasting.