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.
Created Issue:
Testfor command not working with data tag
I Tried this command, 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.
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.
A testfor command does not perpetually run after the command block is powered. It only tests in the initial game tick when it is powered. Thus, if you were on the ground when you powered the command block and then jumped afterwards, the comparator would not activate.
Instead of typing
{OnGround:0}, type
{OnGround:false}. That should activate the comparator.
THX!
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.