Conways Game of Life using just 5 Commands @DqwertyC
Conways Game of Life using just 5 Commands  @DqwertyC
Uploaded July 2022 | Updated November 2026, 5 hours ago
This week, we're creating Conway's Game of Life in Minecraft using just 5 commands!

Conway's Game of Life is probably the most famous 2D cellular automata. It features a grid of cells that can either be alive or dead. Each tick, dead cells with exactly 3 living neighbors come to life, and living cells with less than 2 or more than 3 living neighbors die. From these simple rules, extremely complex behavior arises. Learn more about Conway's Game of Life here: en.wikipedia.org/wiki/Conway%27s_Game_of_Life

Check out my older Game of Life Datapack here: youtube.com/watch?v=oNfI54A3USI

Here are the commands used in this episode:
Command 1 - Count living neighbors:
execute as @e[type=armor_stand,name=Conway] at @s store result entity @s ArmorItems[3].tag.neighbors byte 1 if entity @e[name=Conway,distance=0.5..1.5,nbt={ArmorItems:[{},{},{},{tag:{display:{color:16383998}}}]}]

Command 2 - Bring cells to life:
execute as @e[type=armor_stand,name=Conway,nbt={ArmorItems:[{},{},{},{tag:{display:{color:1908001}}}]}] if entity @s[nbt={ArmorItems:[{},{},{},{tag:{neighbors:3b}}]}] run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:leather_helmet",Count:1b,tag:{neighbors:3b,display:{color:16383998}}}],Invisible:1b,Marker:1b,Rotation:[0.0f,0.0f],Pose:{Head:[0.0f,0.0f,0.0f],Body:[0.0f,0.0f,0.0f]}}

Command 3 - Kill cells:
execute as @e[type=armor_stand,name=Conway,nbt={ArmorItems:[{},{},{},{tag:{display:{color:16383998}}}]}] unless entity @s[nbt={ArmorItems:[{},{},{},{tag:{neighbors:2b}}]}] unless entity @s[nbt={ArmorItems:[{},{},{},{tag:{neighbors:3b}}]}] run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:leather_helmet",Count:1b,tag:{display:{color:1908001}}}],Invisible:1b,Marker:1b,Rotation:[0.0f,0.0f],Pose:{Head:[0.0f,0.0f,0.0f],Body:[0.0f,0.0f,0.0f]}}

Command 4 - Set concrete beneath dead cells:
execute as @e[type=armor_stand,name=Conway,nbt={ArmorItems:[{},{},{},{tag:{display:{color:1908001}}}]}] at @s if block ~ ~-1 ~ minecraft:white_concrete run setblock ~ ~-1 ~ minecraft:black_concrete

Command 5 - Set concrete beneath living cells:
execute as @e[type=armor_stand,name=Conway,nbt={ArmorItems:[{},{},{},{tag:{display:{color:16383998}}}]}] at @s if block ~ ~-1 ~ minecraft:black_concrete run setblock ~ ~-1 ~ minecraft:white_concrete

Chapters:
0:00 Intro
2:30 Command 1
4:04 Command 2
5:30 Command 3
6:04 Command 4
6:25 Command 5
6:40 Large Scale Demo
Conways Game of Life using just 5 CommandsSierpinskis Christmas Tree in MinecraftFunctional, Customizable Dice in MinecraftA Closer Look at the Double Jump ElytraDatapack Teaser - Sierpinskis Arrowhead in MinecraftMid-Air Block Placement Utility - Five Block Friday S2 E01Morphing Divisibility GraphsHitomezashi Patterns With 5 Commands - FBF S2 E02Nine custom archery enchantments for Minecraft 1.21.9Mutagenic Menagerie - Teaser TrailerThis one item model renders ANY 16x16 textureRelaxing Minecraft Maze Generator
DqwertyC |

Conway's Game of Life using just 5 Commands

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER