My Most Compact Maze Generator Yet @DqwertyC
My Most Compact Maze Generator Yet  @DqwertyC
Uploaded August 2022 | Updated November 2026, 3 hours ago
Questions about this episode or want help on your own Minecraft creations? Join the Command Block Cove on Discord: discord.gg/Vr9vfP6EqH

Thank you for making Season 1 of Five Block Fridays fantastic! I'll be taking a break for a bit to hopefully work on some larger projects.

Be on the lookout for a technical deep-dive on this creation sometime next week, as well as a world tour and download next Friday.

Commands:
Command 1 - Reset the Maze
execute if entity @e[type=snowball,nbt={Item:{tag:{display:{Name:"{\"text\":\"Reset\"}"}}}}] at @e[name=maze_walker] unless entity @e[name=maze_tile,distance=0..0.5] run execute as @e[name=maze_tile] at @s store success entity @s NoBasePlate byte 0 run fill ~-1 ~2 ~-1 ~1 ~5 ~1 minecraft:birch_leaves[persistent=true] replace air

Command 2 - Rotate Unvisited Neighbors
execute as @e[name=maze_walker] at @s as @e[name=maze_tile,nbt={NoBasePlate:0b},distance=1.5..2.5] at @s facing entity @e[name=maze_walker,sort=nearest,limit=1] eyes run tp @s ~ ~ ~ ~ 0

Command 3 - Teleport to Random Neighbor
execute at @e[name=maze_walker] as @e[name=maze_tile,nbt={NoBasePlate:0b},distance=1.5..2.5,sort=random,limit=1] store success entity @s NoBasePlate byte 1 run tp @e[name=maze_walker,sort=nearest,limit=1] @s

Command 4 - Carve Out Walls
execute as @e[name=maze_walker] at @s rotated as @e[name=maze_tile,distance=0..0.5,sort=nearest,limit=1] rotated ~ 0 store success entity @s NoBasePlate byte 1 run fill ^ ^3 ^ ^ ^5 ^2 minecraft:air

Command 5 - Backtrack if Necessary
execute as @e[name=maze_walker,nbt={NoBasePlate:0b}] at @s rotated as @e[name=maze_tile,sort=nearest,distance=0..0.5,limit=1] run tp @s ^ ^ ^2

Chapters:
0:00 - Intro
0:56 - Depth First Search explained
3:10 - Demos
5:00 - Timelapse
8:15 - Outro
My Most Compact Maze Generator YetAdding Arms to Armor StandsAdding Enchantments to Make Elytra BetterThis Vanilla+ Datapack adds a Biome ScannerPac-Man in Minecraft - Arcade Cabinet DatapacksAviator Helmet Datapack - An HUD for your Elytra!Snapshot 22w14a Datapack - Totem of UndoingMiniMagbot 100% Playthrough and Developer Commentary5 Custom Enchantments for Minecraft Snapshot 24w18aHow YOU Can Add Fireflies to Minecraft with Just Five CommandsRecursive Division Redstone Maze GeneratorPortable Portals - Minecraft 26.2 Datapack
DqwertyC |

My Most Compact Maze Generator Yet

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER