Instead of testing for a gamemode NBT tag, why don't you use the gamemode selector instead?
/testfor @a[m=1]
If you want to mark players, you can use a /scoreboard
command with the selectors set to @a[m=1]
.
Instead of testing for a gamemode NBT tag, why don't you use the gamemode selector instead?
/testfor @a[m=1]
If you want to mark players, you can use a /scoreboard
command with the selectors set to @a[m=1]
.