Why is there a "Conditional/Unconditional" setting for command blocks?

When I was making a Zombie Horse Trap (Zombie equivalent of Skeleton Trap) using command blocks, one command block was not doing it's job. I tried clicking the "Unconditional" button to make it "conditional", and it had no effect on the system at all.

Does this button even have a point?

If it does, please explain it's purpose.

2 Answers

From Gamepedia:

"Conditional": The command block should only execute its command if the command block behind it executed successfully

"Unconditional": The command block should ignore the block behind it

Behind it means the side opposite from the direction the command block is facing.

This differs from chain command blocks because:

"Chain blocks are green. These execute only after the command block pointing to it is processed. This differs from the Conditional option in that it detects what is pointing to it, instead of simply behind it. The command blocks pointing to it also need not be chain blocks themselves to trigger the chain."

-Gamepedia

I hope this helped. Good luck!

6

Yes, that is correct. The reason for this is so that you can make your redstone/command block builds more compact and it makes it easier to fit the command blocks together.

3

You Might Also Like