How can I toggle between two blocks on button press with a command block?
//ads -- adsterra.com -- native banner
?>
I want to change a concrete block from red to green and vice-versa, when players click a button. How can I achieve this with a command block?
Pictures about "How can I toggle between two blocks on button press with a command block?"



How do you toggle a command block?
How to Access Command BlocksHow do you activate multiple command blocks with one button?
To make your command block run multiple commands, you will need to summon FallingSand or falling_block (depending on your version of Minecraft) with command blocks and redstone blocks for each command. The command blocks will be stacked one on top of the other and contain the individual command.How do you use command blocks with buttons?
How to get a Command BlockHow do you Chain 2 command blocks?
Setting up the Reward Command BlockMinecraft Commands: Toggling Light Switch Tutorial
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ono Kosuki, Magda Ehlers, Magda Ehlers, Ron Lach
