An impulse command block loops by chaining it to a repeating command block

An impulse command block runs its command once when powered by redstone. To make it loop, you need a repeating command block that activates it over and over. The repeating block stays powered and runs every game tick (20 times per second by default), triggering the impulse block repeatedly as long as redstone power reaches both blocks.

The simplest setup uses two command blocks placed next to each other: a repeating block powered by redstone, and an impulse block that receives a redstone signal from the repeating block. You can also use a clock circuit — a redstone mechanism that turns on and off automatically — to pulse the impulse block at intervals you control.

Key Takeaways

  • Place a repeating command block next to an impulse command block, with redstone dust or a comparator connecting them so the repeating block powers the impulse block.
  • The repeating block must be set to "Always Active" (not conditional) and powered by redstone for the loop to work.
  • The impulse block will run once per game tick as long as the repeating block stays powered, which means 20 times per second in normal speed.
  • If you want the impulse block to run less often, use a redstone clock circuit instead of direct power from a repeating block.
  • Test your setup in Creative mode first to make sure the command syntax is correct before using it in a world you care about.

Setting up the basic two-block loop

Place a repeating command block and an impulse command block next to each other, with the impulse block positioned so it can receive a redstone signal from the repeating block. The easiest way is to put redstone dust on top of the impulse block, then power that dust from the repeating block using a redstone comparator or repeater.

Open the repeating command block and set it to "Always Active" mode. This means it will run whenever it receives power, without needing a redstone pulse. Leave "Conditional" unchecked. Type your command in the command field — for example, say hello or give @s diamond. Do not put anything in the impulse block's command field; it will inherit the repeating block's output through the redstone connection.

Power the repeating block with redstone. You can use a lever, a button, a redstone block, or any other power source. Once power reaches the repeating block, it will activate continuously, and the impulse block will run its inherited command repeatedly. To stop the loop, cut the redstone power.

Using a redstone clock to control loop speed

If you want the impulse block to run fewer than 20 times per second, use a redstone clock instead of constant power. A clock is a redstone circuit that turns on and off automatically at a set interval. The most common design uses repeaters to delay the signal.

A simple two-repeater clock works like this: place two redstone repeaters facing each other with a one-block gap between them. Set both repeaters to 4 ticks (the longest delay). Run redstone dust from one repeater to your impulse command block. Power the circuit with a redstone block or lever. The repeaters will pulse back and forth, sending a signal to the impulse block roughly every 8 game ticks instead of every tick.

You can adjust the speed by changing the repeater delays. A 1-tick repeater on each side makes the impulse block run faster; a 4-tick repeater on each side makes it run slower. Experiment in Creative mode to find the timing you want.

Placing command blocks in Survival mode

In Survival mode, you cannot place command blocks by hand. You must use the /give command to add them to your inventory. Open the chat and type /give @s command_block to receive a command block. You can then place it in the world.

If you are not in Creative mode and do not have cheats turned on, you cannot use command blocks at all. You must enable cheats when you create the world or use the pause menu to open the world to LAN and turn on cheats there. Once cheats are on, you can use the /give command and place blocks freely.

Troubleshooting a loop that does not work

If your impulse block is not running, check that the repeating block is actually powered. Look for redstone dust lighting up, or place a redstone lamp next to the repeating block to see if it receives power. If the lamp does not light, your power source is not connected correctly.

Make sure the impulse block is receiving a redstone signal from the repeating block. Redstone dust must have a clear path, and repeaters or comparators must face the right direction. If you are using a comparator, set it to subtraction mode (the back torch should be lit) so it passes the signal through.

Check that your command syntax is correct. If the command has an error, the block will show a red X and will not run. Hover over the X to see what went wrong. Common mistakes include forgetting the @ symbol in selectors like @s or @a, or using the wrong item or block name.

Using conditional command blocks in a loop

A conditional command block only runs if the previous command block succeeded. You can use this to create chains of commands that depend on each other. To make a conditional impulse block loop, place it next to a repeating block and check the "Conditional" box in the impulse block's settings.

The impulse block will now run only if the repeating block's command succeeded. This is useful if you want to run a command only when a certain condition is true — for example, only give a player an item if they are standing in a certain location. The repeating block checks the condition, and the impulse block runs the action only if the condition passed.

Frequently Asked Questions

Can I make an impulse command block loop without a repeating block?

No, an impulse block by itself runs only once per redstone pulse. You need either a repeating block to power it continuously, or a redstone clock to pulse it at intervals. A repeating block is the simplest option.

How do I stop a looping impulse command block?

Cut the redstone power to the repeating block. You can do this by turning off a lever, removing a redstone block, or breaking the redstone dust that connects to the power source. The impulse block will stop running immediately.

Why is my impulse block running too fast or too slow?

If it is running too fast (more than once per tick), you are using direct power from a repeating block, which runs 20 times per second. Use a redstone clock instead and adjust the repeater delays to slow it down. If it is running too slow, reduce the repeater delays in your clock circuit.

Can I use a button or lever to trigger an impulse block loop?

A button or lever can power a repeating block, which will then loop the impulse block. However, a button sends only a short pulse, so the loop will run for only a moment. A lever stays on until you flip it again, so the loop will run continuously while the lever is on.

What is the difference between impulse and repeating command blocks?

An impulse block runs once per redstone pulse. A repeating block runs every tick as long as it is powered. Impulse blocks are useful for one-time actions; repeating blocks are useful for continuous checks or for powering other blocks in a loop.