Autonomous Cellular Grid: Conway's Game of Life in Vanilla Minecraft

Watch a glowing 9x9 obsidian floor grid run Conway's Game of Life in real time, birthing, evolving, and shifting colors across generations with command blocks.

Java EditionComplex Contraptions & CinematicsMedium24 commandsTested on a real 26.2 & 26.3 server
A dark cellular grid in Minecraft displaying Conway's Game of Life with emerald blocks and sea lanterns. Download the GIF Video & GIF © www.9minecraft.net

SimulationsTechnologyDarkGreenPurpleBlackLearningDecorationMini-gameBlock displaysSummoned mobsBlock building (fill/setblock/clone)21+ commands

The Autonomous Cellular Grid turns a dark obsidian arena into a self-running mathematical simulation based on Conway's Game of Life. Every second, 81 cells count their eight surrounding neighbors to decide whether they are born as glowing emerald blocks, survive and mutate into sea lanterns, or vanish in a burst of amethyst particles.

Above each living cell, a floating 3D hologram block hovers and changes color depending on how many generations the cell has survived, while four seed beacons periodically inject new life into the center so the pattern never dies out.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard objectives add c9_n dummy
  3. /scoreboard objectives add c9_a dummy
  4. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 minecraft:crying_obsidian
  5. /fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 minecraft:black_concrete
  6. /summon minecraft:block_display ~ ~-0.8 ~ {Tags:["c9_gen","c9_cell"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.5f,-0.25f],scale:[0.5f,0.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  7. /execute as @e[tag=c9_gen] at @s run summon minecraft:block_display ~-2 ~ ~-2 {Tags:["c9_g3","c9_cell"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.5f,-0.25f],scale:[0.5f,0.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  8. /execute as @e[tag=c9_gen] at @s run summon minecraft:block_display ~2 ~ ~-2 {Tags:["c9_g3","c9_cell"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.5f,-0.25f],scale:[0.5f,0.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  9. /execute as @e[tag=c9_gen] at @s run summon minecraft:block_display ~-2 ~ ~2 {Tags:["c9_g3","c9_cell"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.5f,-0.25f],scale:[0.5f,0.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  10. /execute as @e[tag=c9_gen] at @s run summon minecraft:block_display ~2 ~ ~2 {Tags:["c9_g3","c9_cell"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.5f,-0.25f],scale:[0.5f,0.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /execute as @e[tag=c9_g3] at @s run summon minecraft:block_display ~1 ~ ~ {Tags:["c9_g1","c9_cell"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.5f,-0.25f],scale:[0.5f,0.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  2. /execute as @e[tag=c9_g3] at @s run summon minecraft:block_display ~-1 ~ ~ {Tags:["c9_g1","c9_cell"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.5f,-0.25f],scale:[0.5f,0.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  3. /execute as @e[tag=c9_g1] at @s run summon minecraft:block_display ~ ~ ~1 {Tags:["c9_cell"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.5f,-0.25f],scale:[0.5f,0.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  4. /execute as @e[tag=c9_g1] at @s run summon minecraft:block_display ~ ~ ~-1 {Tags:["c9_cell"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.5f,-0.25f],scale:[0.5f,0.5f,0.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  5. /tag @e[tag=c9_g3] add c9_g1
  6. /tag @e[tag=c9_g1] remove c9_g1
  7. /tag @e[tag=c9_g3] remove c9_g3
  8. /scoreboard players add @e[tag=c9_gen] c9_t 1
  9. /execute if score @e[tag=c9_gen,limit=1] c9_t matches 1..200 as @e[tag=c9_gen] at @s if score @s c9_t matches 1 run fill ~-1 ~ ~-1 ~1 ~ ~1 minecraft:emerald_block
  10. /execute if score @e[tag=c9_gen,limit=1] c9_t matches 20.. as @e[tag=c9_cell] at @s store result score @s c9_n if entity @e[tag=c9_cell,tag=c9_live,distance=0.5..1.8]
  11. /execute if score @e[tag=c9_gen,limit=1] c9_t matches 20.. as @e[tag=c9_cell] at @s run tag @s remove c9_live
  12. /execute if score @e[tag=c9_gen,limit=1] c9_t matches 20.. as @e[tag=c9_cell] at @s if block ~ ~ ~ minecraft:emerald_block if score @s c9_n matches 2..3 run setblock ~ ~ ~ minecraft:sea_lantern
  13. /execute if score @e[tag=c9_gen,limit=1] c9_t matches 20.. as @e[tag=c9_cell] at @s if score @s c9_n matches 3 unless block ~ ~ ~ minecraft:sea_lantern run setblock ~ ~ ~ minecraft:emerald_block
  14. /execute as @e[tag=c9_cell] at @s if block ~ ~ ~ minecraft:emerald_block run tag @s add c9_live

How it works

Frames from the test run

Autonomous Cellular Grid: Conway's Game of Life in Vanilla Minecraft - frame 1Autonomous Cellular Grid: Conway's Game of Life in Vanilla Minecraft - frame 2Autonomous Cellular Grid: Conway's Game of Life in Vanilla Minecraft - frame 3

Recorded on our own test server: 52 frames at about 8.6 fps. Our image check saw: A top-down view of a dark obsidian and crying obsidian grid on a grassy field, featuring emerald blocks in the center and small floating sea lantern blocks arranged in a symmetrical pattern.

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. Stand at the center of a flat 41x41 area and run the 10 setup commands in chat or in impulse command blocks.
  2. Place a column of 14 repeating command blocks (or 1 repeating followed by 13 chain command blocks), all set to Always Active.
  3. Paste the 14 loop commands in order from index 0 to 13 into the command blocks.
  4. Watch the 3x3 emerald seed pattern at the center immediately begin splitting and evolving across the glowing grid.
  5. To inject new custom patterns while it runs, place <code>emerald_block</code> blocks anywhere on the black concrete grid.

Use it with real players

To interact with the cellular grid in survival or creative mode, give yourself emerald_block items and place them directly onto the black concrete floor. The nearest cell detectors automatically tag any newly placed emerald block as c9_live and fold your pattern into the next generation calculation.

Remove it again 6 commands

  1. /kill @e[tag=c9_cell]
  2. /fill ~-5 ~-1 ~-5 ~5 ~1 ~5 minecraft:air
  3. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 minecraft:grass_block
  4. /scoreboard objectives remove c9_t
  5. /scoreboard objectives remove c9_n
  6. /scoreboard objectives remove c9_a

FAQ

Why does the radius 0.5..1.8 count all 8 neighbors accurately?

In a 1-block grid, orthogonal neighbors are 1.0 block away and diagonal neighbors are 1.414 blocks away. Checking 0.5 to 1.8 excludes the cell itself (0.0) and cells two blocks away (2.0), capturing only the 8 surrounding Moore neighbors.

Will this lag my server over time?

No. The grid expansion tags (c9_g3 and c9_g1) are removed after the first two ticks, locking the total entity count at just 41 block_display entities permanently.

Commands used

/execute/fill/scoreboard/setblock/summon/tag

Similar creations

Join 9Minecraft News & Guides