mojira.dev
MC-48743

Testfor command not working with data tag

I Tried this command in a command block hooked up to a redstone clock, but it did not as intended:

/testfor @p {OnGround:0}

It Keeps Saying "Player did not match data structure"

I thought that If I jumped, it would activate the comparator by the command block.

Comments 3

Instead of typing {OnGround:0}, type {OnGround:false}. That should activate the comparator.

Is this still a concern in the current Minecraft version 1.7.9 / Launcher version 1.3.11 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Benjamin Aaron Cole

(Unassigned)

Unconfirmed

testfor

Minecraft 14w07a

Retrieved