Self-Cloning Cellular Pattern Machine

An autonomous mechanical structure duplicates itself across the terrain while computing a live Rule 90 black-and-white cellular automaton on its top surface.

Java EditionComplex Contraptions & CinematicsExpert24 commandsTested on a real 26.2 & 26.3 server
A self-cloning machine prints a black-and-white Sierpinski fractal pattern across its roof using a cyan laser scanner. Download the GIF Video & GIF © www.9minecraft.net

SimulationsTechnologyIndustrialWhiteBlackCyanLearningCinematicBlock displaysBlock building (fill/setblock/clone)21+ commands

Watch an autonomous machine replicate itself across the flatland step by step while computing a live cellular automaton on its roof. A scanning laser beam sweeps across the growing structure, cloning mechanical bays forward and printing a crisp black-and-white Sierpinski fractal pattern using Rule 90 logic.

Once the machine stretches across the stage, a bright golden reset wave sweeps through the structure, clearing the memory grid so the self-cloning cycle can begin again.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard players set #tick c9_t 0
  3. /scoreboard players set #row c9_t 0
  4. /fill ~-5 ~ ~-13 ~5 ~2 ~13 air
  5. /fill ~-4 ~ ~-12 ~4 ~ ~-12 iron_block
  6. /fill ~-4 ~ ~-13 ~4 ~1 ~-13 polished_deepslate
  7. /fill ~-4 ~1 ~-12 ~4 ~1 ~-12 white_concrete
  8. /setblock ~ ~1 ~-12 black_concrete
  9. /summon marker ~ ~1 ~-12 {Tags:["c9_m","c9_scanner"]}
  10. /summon block_display ~-4.5 ~1.1 ~-12.5 {Tags:["c9_m","c9_beam"],Glowing:1b,glow_color_override:65535,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[9f,0.25f,0.4f],translation:[0f,0f,0f]}}

2. Loop - one repeating command block each (Always Active) 14 commands

  1. /scoreboard players add #tick c9_t 1
  2. /execute if score #tick c9_t matches 12.. run scoreboard players set #tick c9_t 0
  3. /execute if score #tick c9_t matches 0 if score #row c9_t matches ..22 run scoreboard players add #row c9_t 1
  4. /execute if score #tick c9_t matches 0 if score #row c9_t matches ..22 at @e[tag=c9_scanner] run clone ~-4 ~-1 ~ ~4 ~-1 ~ ~-4 ~-1 ~1
  5. /execute if score #tick c9_t matches 0 if score #row c9_t matches ..22 as @e[tag=c9_scanner] at @s run tp @s ~ ~ ~1
  6. /execute if score #tick c9_t matches 0 if score #row c9_t matches ..22 at @e[tag=c9_scanner] run setblock ~-4 ~-1 ~ sea_lantern
  7. /execute if score #tick c9_t matches 0 if score #row c9_t matches ..22 at @e[tag=c9_scanner] run setblock ~4 ~-1 ~ sea_lantern
  8. /execute if score #tick c9_t matches 0 if score #row c9_t matches ..22 at @e[tag=c9_scanner] run fill ~-4 ~ ~ ~4 ~ ~ white_concrete
  9. /execute if score #tick c9_t matches 1 if score #row c9_t matches ..22 at @e[tag=c9_scanner] align xyz run summon area_effect_cloud ~-3.5 ~ ~0.5 {Tags:["c9_m","c9_cell"],Duration:3,Radius:0.1f}
  10. /execute if score #tick c9_t matches 1 if score #row c9_t matches ..22 as @e[tag=c9_cell] at @s run summon area_effect_cloud ~1 ~ ~ {Tags:["c9_m","c9_cell"],Duration:2,Radius:0.1f}
  11. /execute if score #tick c9_t matches 1..2 if score #row c9_t matches ..22 as @e[tag=c9_cell] at @s if loaded ~ ~ ~ run summon area_effect_cloud ~2 ~ ~ {Tags:["c9_m","c9_cell"],Duration:1,Radius:0.1f}
  12. /execute if score #tick c9_t matches 2 if score #row c9_t matches ..22 as @e[tag=c9_cell] at @s store result score @s c9_t run clone ~-1 ~ ~-1 ~1 ~ ~-1 ~-1 ~1 ~-1 filtered black_concrete force
  13. /execute if score #tick c9_t matches 2 if score #row c9_t matches ..22 as @e[tag=c9_cell] at @s run fill ~-1 ~1 ~-1 ~1 ~1 ~-1 air
  14. /execute if score #tick c9_t matches 2 if score #row c9_t matches ..22 as @e[tag=c9_cell,scores={c9_t=1}] at @s run setblock ~ ~ ~ black_concrete

How it works

Frames from the test run

Self-Cloning Cellular Pattern Machine - frame 1Self-Cloning Cellular Pattern Machine - frame 2Self-Cloning Cellular Pattern Machine - frame 3

Recorded on our own test server: 40 frames at about 5.5 fps. Our image check saw: A white mechanical block structure on a grassy flatland expands forward while a cyan laser beam scans across its roof, generating a black-and-white Sierpinski triangle cellular automaton pattern alongside blue-and-white particles.

Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.

Build it in your world

  1. Create a flat clearing at least 30x30 blocks wide and stand at the center.
  2. Run each command from the Setup list in chat once to build the starter bay and initialize the scoreboards.
  3. Place 14 Repeating Command Blocks (or 1 Repeating followed by 13 Chain Command Blocks) nearby.
  4. Paste the Loop commands in order from 1 to 14 and set every block to Always Active.
  5. Watch the scanner head clone the machine across the platform while printing the black-and-white cellular pattern.

Use it with real players

To step through the cellular automaton manually instead of running on an automatic timer, disconnect the first two loop commands and trigger a single impulse block with /scoreboard players set #tick c9_t 0 followed by a 2-tick redstone repeater pulse whenever a player presses a button.

Remove it again 3 commands

  1. /kill @e[tag=c9_m]
  2. /scoreboard objectives remove c9_t
  3. /fill ~-5 ~ ~-13 ~5 ~2 ~13 air

FAQ

How does the pattern generator compute Rule 90 in vanilla Minecraft?

Each cell checks the three tiles behind it using a filtered clone command that counts black concrete blocks. When the count equals 1, it places a black concrete block.

Will the cloning machine expand forever and lag my world?

No, the #row scoreboard counter caps the duplication at 23 rows so the entire structure stays neatly inside the 41x41 stage.

Commands used

/clone/execute/fill/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides