What's wrong with my command? (might be me or a bug)

What's wrong with my command? (might be me or a bug) - 1 + 1 = 3 Text on Black Chalkboard

So I have this simple setup to show what the problem is: This is the setup

this command block checks for a quartz block above it: enter image description here

this one checks if the left command block's previous output is true: enter image description here

But then when I remove the quartz block the right command block keeps emitting a signal.enter image description here

Can't tell if it's my fault because I really can't find my mistake.



Best Answer

The reason your contraption is not working (middle-right is still outputting) is because the /testfor command is true, hence:

A command block will give itself a data value of 1 if it run a command. It does not indicate whether it is a success or not, only the fact that the command block has previously run a command.

The comparison of whether the result was a success or not are for comparators.




Pictures about "What's wrong with my command? (might be me or a bug)"

What's wrong with my command? (might be me or a bug) - Two Persons Holding Two Red Heart Shaped Balloons
What's wrong with my command? (might be me or a bug) - Couple Kissing While Holding a Red Heart Shaped Balloon
What's wrong with my command? (might be me or a bug) - Couple Kissing Each Other



Why is command block not working?

You may find that the commands you are trying to have the command block execute are not working. This may be due to the certain limitations the block has on what commands it can run successfully. Command Blocks will execute commands with an OP level 2 permissions.

How do you fix a command block in Minecraft?

To activate the command block, just activate the redstone device that is attached to the command block. In this example, the redstone device is a lever. So you would activate the command block by toggling the lever.



what. (Bo Burnham FULL SHOW HD)




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: George Becker, RODNAE Productions, RODNAE Productions, RODNAE Productions