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
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


![A Closer Look at the Double Jump Elytra
Questions about this episode or want help on your own Minecraft creations? Join the Command Block Cove on Discord: https://discord.gg/Vr9vfP6EqH
This mid-week episode is a deep dive look at the five commands used in last weeks Double Jump Enchantment episode: https://youtu.be/x87YrS_TCOQ
Command 1- Modify Elytra:
execute as @e[type=minecraft:item,nbt={Item:{tag:{BlockEntityTag:{Items:[{Slot:4b,id:minecraft:lapis_lazuli,Count:3b},{Slot:12b,tag:{Potion:minecraft:leaping},Count:1b},{Slot:13b,id:minecraft:elytra,Count:1b},{Slot:14b,tag:{Potion:minecraft:leaping},Count:1b},{Slot:22b,id:minecraft:experience_bottle,Count:48b}]}}}},nbt=!{Item:{tag:{BlockEntityTag:{Items:[{Slot:13b,tag:{DoubleJump:1b}}]}}}}] at @s if block ~ ~ ~ minecraft:enchanting_table store success entity @s Item.tag.BlockEntityTag.Items[{Slot:13b}].tag.DoubleJump byte 1 run data modify entity @s Item.tag.BlockEntityTag.Items[{Slot:13b}].tag.display.Lore append value {text:Double Jump,italic:false,color:gray}
Command 2 - Replace Shulker Chest with Elytra:
execute as @e[type=minecraft:item,nbt={Item:{tag:{BlockEntityTag:{Items:[{Slot:4b,id:minecraft:lapis_lazuli,Count:3b},{Slot:12b,tag:{Potion:minecraft:leaping},Count:1b},{Slot:13b,id:minecraft:elytra,Count:1b},{Slot:14b,tag:{Potion:minecraft:leaping},Count:1b},{Slot:22b,id:minecraft:experience_bottle,Count:48b}]}}}}] at @s if block ~ ~ ~ minecraft:enchanting_table store result entity @s Item.tag.Enchantments[{id:fbf:double_jump}].lvl short 1 run data modify entity @s Item set from entity @s Item.tag.BlockEntityTag.Items[{Slot:13b}]
Command 3 - Create Scoreboard:
scoreboard objectives add double_jump_tracker minecraft.custom:minecraft.jump
Command 4 - Add Levitation:
execute as @a[nbt={Inventory:[{Slot:102b,id:minecraft:elytra,tag:{DoubleJump:1b}}],FallFlying:1b},scores={double_jump_tracker=2..}] store result score @s double_jump_tracker run effect give @s minecraft:levitation 1 16 true
Command 5 - Remove Levitation:
effect clear @a[nbt={ActiveEffects:[{Id:25,Duration:16,Amplifier:16b}]}] minecraft:levitation
Chapters:
00:00 - Intro
00:33 - Command 1
06:48 - Command 2
08:36 - Command 3
08:50 - Command 4
10:28 - Command 5
10:56 - Outro A Closer Look at the Double Jump Elytra](https://i.ytimg.com/vi/5_8wupRHq_U/mqdefault.jpg)







