Minecraft – How to make a command block chain

minecraft-commandsminecraft-java-edition

I'm trying to make a chain of command blocks that would change a player's gamemode and then teleport them somewhere from the press of 1 button. I tried connecting them with redstone and also tried using a repeater and nothing has worked. Any suggestions?

Best Answer

1.9+ Answer

For your first command, place an impulse command block. Then, for all subsequent commands, use a chain block on 'always active'.

A demonstration of the method above


1.8 and below answer

This is possible with the use of repeaters.

Simply string your command blocks together like so:

How to string together command blocks

This will execute the commands left to right with a 4 tick delay between each when the button is pressed.

The delay on the repeaters can be changed or more repeaters can be added to make the delay between executions quicker or slower.