Conditional Commands
In this tutorial, I will be showing you all about the second button in command blocks, conditional.
Conditional commands are commands in a line of command blocks that will only run if the one before is successful. I will show you what I mean more in a minute but first this is how to get them and what they look like.
Conditional commands are commands in a line of command blocks that will only run if the one before is successful. I will show you what I mean more in a minute but first this is how to get them and what they look like.
As you can see there is the middle button and this is what toggles conditional. You can tell they are conditional by the hole in the bottom of the arrow on the block. In our example from last time you can see in chat it made no difference. This is because it successfully said '2' in chat which is the command before it so when it came to the conditional it got the all clear to go.
You do not need to understand the commands behind this yet but in this example above it constantly sets a stone block above the first command block and then it checks if the stone above the command has been mined as it will only set the block to stone if it was air and if it has set the block it says 'Set block to stone'. It also has the end command which has
'/say This runs no matter what'
Which runs even if the stone wasn't mined as it is not conditional. Below are the commands I use to make this if you want to try get your head around it.
I hope you now know how they work! ~Blue
'/say This runs no matter what'
Which runs even if the stone wasn't mined as it is not conditional. Below are the commands I use to make this if you want to try get your head around it.
I hope you now know how they work! ~Blue
The Commands