Skip to content
[/craft]

Place A Repeating Command Block

Create a repeating command block at your location

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Places a repeating command block that executes a command every redstone tick when powered. Repeating command blocks run continuously if powered, making them essential for automatic farms and redstone contraptions. They run in the order: repeating → chain → impulse.

/setblock ~ ~ ~ repeating_command_block
39 characters

How to use

  1. Open chat (T on Java, / on Bedrock).
  2. Paste the command and press Enter.
  3. Right-click the block and add a command to execute.
  4. Power the block with redstone to make it run.

Related commands

Create a command block at your location for automation

/setblock ~ ~1 ~ command_block[facing=up]{Command:"/say Hello"}

Create a chain command block for sequential command execution

/setblock ~ ~ ~ chain_command_block

Place one block at a specific spot

/setblock ~ ~ ~ stone

Instantly place a chest at a specific location

/setblock ~ ~ ~ chest

Place a working mob spawner that continuously spawns zombies

/setblock ~ ~ ~ spawner{SpawnData:{entity:{id:"minecraft:zombie"}}}

Place a sculk sensor for redstone detection

/setblock ~ ~ ~ sculk_sensor