Place A Repeating Command Block
Create a repeating command block at your location
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Places 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_block39 characters
- Java: yes
- Bedrock: yes
- Command block: no
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command and press Enter.
- Right-click the block and add a command to execute.
- 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_blockPlace a working mob spawner that continuously spawns zombies
/setblock ~ ~ ~ spawner{SpawnData:{entity:{id:"minecraft:zombie"}}}