Custom Maze Generator v4
Custom Maze Generator v4 by khoeckman17871111    1
This super efficient maze generator uses my own maze algorithm! It has a bunch of custom options which took longer to make than the command blocks themself. Have fun!
Minecraft 1.14+
31761 characters
More by khoeckman
How to install
Comments
Show source commands
summon falling_block ~ ~1 ~ {Time:1,BlockState:{Name:redstone_block},Passengers:[{id:falling_block,Passengers:[{id:falling_block,Time:1,BlockState:{Name:activator_rail},Passengers:[{id:command_block_minecart,Command:'gamerule commandBlockOutput false'},{id:command_block_minecart,Command:'data merge block ~ ~-2 ~ {auto:0}'},{id:command_block_minecart,Command:'scoreboard objectives add RJ.Data dummy'},{id:command_block_minecart,Command:'scoreboard objectives add RJ dummy'},{id:command_block_minecart,Command:'scoreboard players set Rows RJ 8'},{id:command_block_minecart,Command:'scoreboard players set Columns RJ 8'},{id:command_block_minecart,Command:'scoreboard players set Roof RJ 0'},{id:command_block_minecart,Command:'tp @e[tag=RJ.Egg] ~ -999 ~'},{id:command_block_minecart,Command:'kill @e[tag=RJ.Egg]'},{id:command_block_minecart,Command:'fill ~-2 ~-2 ~3 ~2 ~4 ~13 air replace birch_wall_sign'},{id:command_block_minecart,Command:'fill ~-2 ~-2 ~1 ~2 ~5 ~13 air'},{id:command_block_minecart,Command:'fill ~-2 ~-3 ~4 ~2 ~5 ~12 white_concrete'},{id:command_block_minecart,Command:'fill ~-1 ~-3 ~5 ~1 ~5 ~11 gray_concrete'},{id:command_block_minecart,Command:'fill ~-2 ~-2 ~4 ~2 ~4 ~12 barrier'},{id:command_block_minecart,Command:'fill ~ ~-2 ~4 ~ ~4 ~12 white_concrete'},{id:command_block_minecart,Command:'fill ~-1 ~-2 ~5 ~1 ~4 ~11 air'},{id:command_block_minecart,Command:'clone ~ ~-2 ~ ~ ~-2 ~ ~ ~-2 ~8'},{id:command_block_minecart,Command:'setblock ~ ~4 ~3 birch_wall_sign{Text1:\'{"text":"","clickEvent":{"action":"run_command","value":"clone ~ ~-6 ~5 ~ ~-6 ~5 ~ ~-6 ~-3"}}\',Text2:\'{"text":"Minify","bold":true,"color":"red","clickEvent":{"action":"run_command","value":"fill ~-2 ~-7 ~ ~2 ~1 ~10 air replace birch_wall_sign"}}\',Text3:\'{"text":"Machine","bold":true,"color":"red","clickEvent":{"action":"run_command","value":"fill ~-2 ~-7 ~1 ~2 ~1 ~9 air"}}\',Text4:\'{"text":"","clickEvent":{"action":"run_command","value":"title @a actionbar [\\\\"\\\\",{\\\\"text\\\\":\\\\"Maze Generator \\\\",\\\\"bold\\\\":true,\\\\"color\\\\":\\\\"red\\\\"},{\\\\"text\\\\":\\\\"Machine Minified.\\\\",\\\\"color\\\\":\\\\"gold\\\\"}]"}}\'}'},{id:command_block_minecart,Command:'setblock ~ ~1 ~3 birch_wall_sign{Text2:\'{"text":"Get","bold":true,"clickEvent":{"action":"run_command","value":"tag @s add RJ.GetItem"}}\',Text3:\'{"text":"Item","bold":true,"clickEvent":{"action":"run_command","value":"playsound ui.button.click neutral @s ~ ~ ~ .5 2 .5"}}\'}'},{id:command_block_minecart,Command:'setblock ~ ~-2 ~3 birch_wall_sign{Text2:\'{"text":"Information","bold":true,"color":"yellow","clickEvent":{"action":"run_command","value":"tag @s add RJ.Credits"}}\',Text3:\'{"text":"And Credits","bold":true,"color":"yellow","clickEvent":{"action":"run_command","value":"playsound ui.button.click neutral @s ~ ~ ~ .5 2 .5"}}\'}'},{id:command_block_minecart,Command:'setblock ~ ~4 ~13 birch_wall_sign[facing=south]{Text2:\'{"text":"Save","bold":true,"color":"green","clickEvent":{"action":"run_command","value":"kill @e[tag=RJ]"}}\',Text3:\'{"text":"Maze","bold":true,"color":"green","clickEvent":{"action":"run_command","value":"playsound ui.button.click neutral @a ~ ~ ~ .5 2 .5"}}\'}'},{id:command_block_minecart,Command:'setblock ~ ~3 ~13 birch_wall_sign[facing=south]{Text2:\'{"text":"Regenerate","bold":true,"color":"yellow","clickEvent":{"action":"run_command","value":"execute at @e[tag=RJ.Spawn] run summon area_effect_cloud ~ ~ ~ {Tags:[\\\'RJ.Egg\\\']}"}}\',Text3:\'{"text":"Maze","bold":true,"color":"yellow","clickEvent":{"action":"run_command","value":"playsound ui.button.click neutral @s ~ ~ ~ .5 2 .5"}}\'}'},{id:command_block_minecart,Command:'setblock ~ ~2 ~13 birch_wall_sign[facing=south]{Text1:\'{"text":"","clickEvent":{"action":"run_command","value":"execute at @e[tag=RJ.Cell] run fill ~-2 ~-1 ~-2 ~2 ~3 ~2 air"}}\',Text2:\'{"text":"Remove","bold":true,"color":"red","clickEvent":{"action":"run_command","value":"kill @e[tag=RJ]"}}\',Text3:\'{"text":"Maze","bold":true,"color":"red","clickEvent":{"action":"run_command","value":"playsound ui.button.click neutral @s ~ ~ ~ .5 2 .5"}}\'}'},{id:command_block_minecart,Command:'setblock ~ ~1 ~13 birch_wall_sign[facing=south]'},{id:command_block_minecart,Command:'setblock ~ ~ ~13 birch_wall_sign[facing=south]'},{id:command_block_minecart,Command:'setblock ~ ~-1 ~13 birch_wall_sign[facing=south]'},{id:command_block_minecart,Command:'setblock ~ ~-2 ~13 birch_wall_sign[facing=south]{Text2:\'{"text":"Teleport","bold":true,"color":"green","clickEvent":{"action":"run_command","value":"tp @s @e[tag=RJ.Start,limit=1]"}}\',Text3:\'{"text":"Start","bold":true,"color":"green","clickEvent":{"action":"run_command","value":"playsound ui.button.click neutral @s ~ ~ ~ .5 2 .5"}}\'}'},{id:command_block_minecart,Command:'setblock ~-1 ~-2 ~5 repeating_command_block[facing=up]{auto:1,Command:"execute if entity @e[tag=RJ.Egg] at @e[tag=RJ.Cell] run fill ~-2 ~-1 ~-2 ~2 ~3 ~2 air"}'},{id:command_block_minecart,Command:'setblock ~-1 ~-1 ~5 chain_command_block[facing=up]{auto:1,Command:"execute if entity @e[tag=RJ.Egg] run kill @e[tag=RJ]"}'},{id:command_block_minecart,Command:'setblock ~-1 ~ ~5 chain_command_block[facing=up]{auto:1,Command:"execute at @e[tag=RJ.Egg] run summon area_effect_cloud ~ ~ ~ {Tags:[\'RJ\',\'RJ.Spawn\'],Duration:2147483647}"}'},{id:command_block_minecart,Command:'setblock ~-1 ~1 ~5 chain_command_block[facing=up]{auto:1,Command:"execute as @e[tag=RJ.Egg] run scoreboard players operation Rows RJ.Data = Rows RJ"}'},{id:command_block_minecart,Command:'setblock ~-1 ~2 ~5 chain_command_block[facing=up]{auto:1,Command:"execute as @e[tag=RJ.Egg] run scoreboard players operation Columns RJ.Data = Columns RJ"}'},{id:command_block_minecart,Command:'setblock ~-1 ~3 ~5 chain_command_block[facing=up]{auto:1,Command:"execute as @e[tag=RJ.Egg] run scoreboard players operation Roof RJ.Data = Roof RJ"}'},{id:command_block_minecart,Command:'setblock ~-1 ~4 ~5 chain_command_block[facing=south]{auto:1,Command:"execute if entity @e[tag=RJ.Egg] at @e[tag=RJ.Spawn] run summon area_effect_cloud ~2 ~ ~2 {Tags:[\'RJ\',\'RJ.Row\'],Duration:2147483647}"}'},{id:command_block_minecart,Command:'setblock ~-1 ~4 ~6 chain_command_block[facing=down]{auto:1,Command:"execute as @e[tag=RJ.Egg] run scoreboard players set Data RJ.Data 1"}'},{id:command_block_minecart,Command:'setblock ~-1 ~3 ~6 chain_command_block[facing=down]{auto:1,Command:"tp @e[tag=RJ.Egg] ~ -999 ~"}'},{id:command_block_minecart,Command:'setblock ~-1 ~2 ~6 chain_command_block[facing=down]{auto:1,Command:"kill @e[tag=RJ.Egg]"}'},{id:command_block_minecart,Command:'setblock ~-1 ~-2 ~7 repeating_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 1 at @e[tag=RJ.Row] run summon area_effect_cloud ~ ~ ~ {Tags:[\'RJ\',\'RJ.Column\'],Duration:2147483647}"}'},{id:command_block_minecart,Command:'setblock ~-1 ~-1 ~7 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 1 as @e[tag=RJ.Row] at @s run tp @s ~ ~ ~4"}'},{id:command_block_minecart,Command:'setblock ~-1 ~ ~7 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 1 run scoreboard players remove Rows RJ.Data 1"}'},{id:command_block_minecart,Command:'setblock ~-1 ~1 ~7 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 1 if score Rows RJ.Data matches 0 run kill @e[tag=RJ.Row]"}'},{id:command_block_minecart,Command:'setblock ~-1 ~2 ~7 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 1 if score Rows RJ.Data matches 0 run scoreboard players set Data RJ.Data 2"}'},{id:command_block_minecart,Command:'setblock ~-1 ~-2 ~8 repeating_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 2 at @e[tag=RJ.Column] run summon area_effect_cloud ~ ~ ~ {Tags:[\'RJ\',\'RJ.Cell\'],Duration:2147483647}"}'},{id:command_block_minecart,Command:'setblock ~-1 ~-1 ~8 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 2 as @e[tag=RJ.Column] at @s run tp @s ~4 ~ ~"}'},{id:command_block_minecart,Command:'setblock ~-1 ~ ~8 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 2 run scoreboard players remove Columns RJ.Data 1"}'},{id:command_block_minecart,Command:'setblock ~-1 ~1 ~8 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 2 if score Columns RJ.Data matches 0 run kill @e[tag=RJ.Column]"}'},{id:command_block_minecart,Command:'setblock ~-1 ~2 ~8 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 2 if score Columns RJ.Data matches 0 run scoreboard players set Data RJ.Data 3"}'},{id:command_block_minecart,Command:'setblock ~-1 ~-2 ~9 repeating_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 as @e[tag=RJ.Cell] at @s positioned ~ ~ ~-4 unless entity @e[tag=RJ.Cell,distance=..1] run tag @s add RJ.1"}'},{id:command_block_minecart,Command:'setblock ~-1 ~-1 ~9 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 as @e[tag=RJ.Cell] at @s positioned ~4 ~ ~ unless entity @e[tag=RJ.Cell,distance=..1] run tag @s add RJ.2"}'},{id:command_block_minecart,Command:'setblock ~-1 ~ ~9 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 as @e[tag=RJ.Cell] at @s positioned ~ ~ ~4 unless entity @e[tag=RJ.Cell,distance=..1] run tag @s add RJ.3"}'},{id:command_block_minecart,Command:'setblock ~-1 ~1 ~9 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 as @e[tag=RJ.Cell] at @s positioned ~-4 ~ ~ unless entity @e[tag=RJ.Cell,distance=..1] run tag @s add RJ.4"}'},{id:command_block_minecart,Command:'setblock ~-1 ~2 ~9 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 as @e[tag=RJ.Cell,tag=!RJ.1,tag=!RJ.2,tag=!RJ.3,tag=!RJ.4] run tag @s add RJ.5"}'},{id:command_block_minecart,Command:'setblock ~-1 ~3 ~9 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 run tag @e[tag=RJ.Cell,tag=!RJ.5,sort=random,limit=1] add RJ.Start"}'},{id:command_block_minecart,Command:'setblock ~-1 ~4 ~9 chain_command_block[facing=south]{auto:1,Command:"execute if score Data RJ.Data matches 3 at @e[tag=RJ.Start] run tag @e[tag=RJ.Cell,tag=!RJ.5,distance=7..,sort=random,limit=1] add RJ.End"}'},{id:command_block_minecart,Command:'setblock ~-1 ~4 ~10 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 3 run tag @e[tag=RJ.Cell,tag=!RJ.Start,tag=!RJ.End] add RJ.Maze"}'},{id:command_block_minecart,Command:'setblock ~-1 ~3 ~10 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 3 at @e[tag=RJ.Cell] run fill ~-2 ~-1 ~-2 ~2 ~3 ~2 air"}'},{id:command_block_minecart,Command:'setblock ~-1 ~2 ~10 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 3 at @e[tag=RJ.Maze] run fill ~-2 ~-1 ~-2 ~2 ~3 ~2 white_concrete hollow"}'},{id:command_block_minecart,Command:'setblock ~-1 ~1 ~10 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 3 at @e[tag=RJ.Cell,tag=!RJ.Maze] run fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 white_concrete"}'},{id:command_block_minecart,Command:'setblock ~-1 ~ ~10 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 3 at @e[tag=RJ.Maze] run fill ~-1 ~3 ~-1 ~1 ~3 ~1 air"}'},{id:command_block_minecart,Command:'setblock ~-1 ~-1 ~10 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 3 if score Roof RJ.Data matches 1 at @e[tag=RJ.Cell,tag=!RJ.Maze] run fill ~-2 ~3 ~-2 ~2 ~3 ~2 white_concrete"}'},{id:command_block_minecart,Command:'setblock ~-1 ~-2 ~10 chain_command_block[facing=south]{auto:1,Command:"execute if score Data RJ.Data matches 3 if score Roof RJ.Data matches 1 at @e[tag=RJ.Cell] run setblock ~ ~-1 ~ sea_lantern"}'},{id:command_block_minecart,Command:'setblock ~-1 ~-2 ~11 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 at @e[tag=RJ.Cell,tag=!RJ.Maze,tag=RJ.1] run fill ~-2 ~-1 ~-2 ~2 ~3 ~-2 lime_concrete replace white_concrete"}'},{id:command_block_minecart,Command:'setblock ~-1 ~-1 ~11 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 at @e[tag=RJ.Cell,tag=!RJ.Maze,tag=RJ.2] run fill ~2 ~-1 ~-2 ~2 ~3 ~2 lime_concrete replace white_concrete"}'},{id:command_block_minecart,Command:'setblock ~-1 ~ ~11 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 at @e[tag=RJ.Cell,tag=!RJ.Maze,tag=RJ.3] run fill ~-2 ~-1 ~2 ~2 ~3 ~2 lime_concrete replace white_concrete"}'},{id:command_block_minecart,Command:'setblock ~-1 ~1 ~11 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 at @e[tag=RJ.Cell,tag=!RJ.Maze,tag=RJ.4] run fill ~-2 ~-1 ~-2 ~-2 ~3 ~2 lime_concrete replace white_concrete"}'},{id:command_block_minecart,Command:'setblock ~-1 ~2 ~11 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 at @e[tag=RJ.End] run fill ~-2 ~-1 ~-2 ~2 ~3 ~2 red_concrete replace lime_concrete"}'},{id:command_block_minecart,Command:'setblock ~-1 ~3 ~11 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 run tag @e[tag=RJ.Cell,sort=random,limit=1] add RJ.Head"}'},{id:command_block_minecart,Command:'setblock ~-1 ~4 ~11 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 3 run scoreboard players set Data RJ.Data 4"}'},{id:command_block_minecart,Command:'setblock ~ ~-2 ~5 repeating_command_block[facing=up]{auto:1,Command:"tellraw @a[tag=RJ.Credits] [\\"\\",{\\"text\\":\\"Maze Generator \\",\\"bold\\":true,\\"color\\":\\"red\\"},{\\"text\\":\\"By Khoeckman\\\\n\\\\n\\",\\"color\\":\\"gold\\"},{\\"text\\":\\"Version \\",\\"bold\\":true,\\"color\\":\\"aqua\\"},{\\"text\\":\\"Release v4.2\\\\n\\",\\"color\\":\\"dark_aqua\\"},{\\"text\\":\\"Command Lenght \\",\\"bold\\":true,\\"color\\":\\"aqua\\"},{\\"text\\":\\"31761\\\\n\\\\n\\",\\"color\\":\\"dark_aqua\\"},{\\"text\\":\\"YouTube \\",\\"bold\\":true,\\"color\\":\\"red\\"},{\\"text\\":\\"https://www.youtube.com/channel/UCpW7TCHKBhOKr-m25rwSqsw\\\\n\\",\\"color\\":\\"dark_red\\",\\"clickEvent\\":{\\"action\\":\\"open_url\\",\\"value\\":\\"https://www.youtube.com/channel/UCpW7TCHKBhOKr-m25rwSqsw\\"}},{\\"text\\":\\"Twitch \\",\\"bold\\":true,\\"color\\":\\"light_purple\\"},{\\"text\\":\\"https://www.twitch.tv/khoeckman\\\\n\\",\\"color\\":\\"dark_purple\\",\\"clickEvent\\":{\\"action\\":\\"open_url\\",\\"value\\":\\"https://www.twitch.tv/khoeckman\\"}},{\\"text\\":\\"Maze Algorithm \\",\\"bold\\":true,\\"color\\":\\"gray\\"},{\\"text\\":\\"https://cdn.discordapp.com/maze_generator.html\\",\\"color\\":\\"dark_gray\\",\\"clickEvent\\":{\\"action\\":\\"open_url\\",\\"value\\":\\"https://cdn.discordapp.com/attachments/703633670363414538/706939624332984320/maze_generator.html\\"}}]"}'},{id:command_block_minecart,Command:'setblock ~ ~-1 ~5 chain_command_block[facing=up]{auto:1,Command:"title @a[tag=RJ.Credits] title {\\"text\\":\\"Maze Generator\\",\\"bold\\":true,\\"color\\":\\"red\\"}"}'},{id:command_block_minecart,Command:'setblock ~ ~ ~5 chain_command_block[facing=up]{auto:1,Command:"title @a[tag=RJ.Credits] subtitle {\\"text\\":\\"By Khoeckman\\",\\"bold\\":true,\\"color\\":\\"gold\\"}"}'},{id:command_block_minecart,Command:'setblock ~ ~1 ~5 chain_command_block[facing=up]{auto:1,Command:"tag @a remove RJ.Credits"}'},{id:command_block_minecart,Command:'setblock ~ ~2 ~5 chain_command_block[facing=up]{auto:1,Command:"give @a[tag=RJ.GetItem] panda_spawn_egg{display:{Name:\'{\\"text\\":\\"Generate Maze\\",\\"italic\\":0,\\"bold\\":true,\\"color\\":\\"gold\\"}\',Lore:[\'{\\"text\\":\\"A maze will generate facing south-east using\\",\\"italic\\":0,\\"color\\":\\"white\\"}\',\'[{\\"text\\":\\"my self made \\",\\"italic\\":0,\\"color\\":\\"white\\"},{\\"text\\":\\"Recursive Jumper\\",\\"italic\\":0,\\"bold\\":true,\\"color\\":\\"red\\"},{\\"text\\":\\" algorithm.\\",\\"italic\\":0,\\"color\\":\\"white\\"}]\']},EntityTag:{Tags:[\'RJ.Egg\'],NoAI:1}}"}'},{id:command_block_minecart,Command:'setblock ~ ~3 ~5 chain_command_block[facing=up]{auto:1,Command:"tag @a remove RJ.GetItem"}'},{id:command_block_minecart,Command:'setblock ~ ~-2 ~9 repeating_command_block[facing=up]{auto:1,Command:"execute if score Rows RJ matches ..0 run scoreboard players set Rows RJ 1"}'},{id:command_block_minecart,Command:'setblock ~ ~-1 ~9 chain_command_block[facing=up]{auto:1,Command:"execute if score Columns RJ matches ..2 if score Rows RJ matches ..3 run scoreboard players set Rows RJ 4"}'},{id:command_block_minecart,Command:'setblock ~ ~ ~9 chain_command_block[facing=up]{auto:1,Command:"execute if score Columns RJ matches ..3 if score Rows RJ matches ..2 run scoreboard players set Rows RJ 3"}'},{id:command_block_minecart,Command:'setblock ~ ~1 ~9 chain_command_block[facing=up]{auto:1,Command:"execute if score Rows RJ matches ..2 if score Columns RJ matches ..3 run scoreboard players set Columns RJ 4"}'},{id:command_block_minecart,Command:'setblock ~ ~2 ~9 chain_command_block[facing=up]{auto:1,Command:"execute if score Columns RJ matches ..0 run scoreboard players set Columns RJ 1"}'},{id:command_block_minecart,Command:'setblock ~ ~3 ~9 chain_command_block[facing=up]{auto:1,Command:"execute if score Rows RJ matches ..3 if score Columns RJ matches ..2 run scoreboard players set Columns RJ 3"}'},{id:command_block_minecart,Command:'setblock ~ ~4 ~9 chain_command_block[facing=south]{auto:1,Command:"execute if score Rows RJ matches 65.. run scoreboard players set Rows RJ 64"}'},{id:command_block_minecart,Command:'setblock ~ ~4 ~10 chain_command_block[facing=down]{auto:1,Command:"execute if score Columns RJ matches 65.. run scoreboard players set Columns RJ 64"}'},{id:command_block_minecart,Command:'setblock ~ ~3 ~10 repeating_command_block[facing=down]{auto:1,Command:"data merge block ~ ~-2 ~3 {Text1:\'{\\"text\\":\\"Rows\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"tellraw @p [\\\\\\\\\\"\\\\\\\\\\",{\\\\\\\\\\"text\\\\\\\\\\":\\\\\\\\\\"\\\\\\\\\\\\\\\\nMaze Generator \\\\\\\\\\",\\\\\\\\\\"bold\\\\\\\\\\":true,\\\\\\\\\\"color\\\\\\\\\\":\\\\\\\\\\"red\\\\\\\\\\"},{\\\\\\\\\\"text\\\\\\\\\\":\\\\\\\\\\"Set Rows \\\\\\\\\\",\\\\\\\\\\"color\\\\\\\\\\":\\\\\\\\\\"gold\\\\\\\\\\"},{\\\\\\\\\\"text\\\\\\\\\\":\\\\\\\\\\"[Click]\\\\\\\\\\",\\\\\\\\\\"color\\\\\\\\\\":\\\\\\\\\\"yellow\\\\\\\\\\",\\\\\\\\\\"clickEvent\\\\\\\\\\":{\\\\\\\\\\"action\\\\\\\\\\":\\\\\\\\\\"suggest_command\\\\\\\\\\",\\\\\\\\\\"value\\\\\\\\\\":\\\\\\\\\\"/scoreboard players set Rows RJ 8\\\\\\\\\\"}},{\\\\\\\\\\"text\\\\\\\\\\":\\\\\\\\\\" Set Columns \\\\\\\\\\",\\\\\\\\\\"color\\\\\\\\\\":\\\\\\\\\\"gold\\\\\\\\\\"},{\\\\\\\\\\"text\\\\\\\\\\":\\\\\\\\\\"[Click]\\\\\\\\\\",\\\\\\\\\\"color\\\\\\\\\\":\\\\\\\\\\"yellow\\\\\\\\\\",\\\\\\\\\\"clickEvent\\\\\\\\\\":{\\\\\\\\\\"action\\\\\\\\\\":\\\\\\\\\\"suggest_command\\\\\\\\\\",\\\\\\\\\\"value\\\\\\\\\\":\\\\\\\\\\"/scoreboard players set Columns RJ 8\\\\\\\\\\"}},{\\\\\\\\\\"text\\\\\\\\\\":\\\\\\\\\\".\\\\\\\\\\",\\\\\\\\\\"color\\\\\\\\\\":\\\\\\\\\\"gold\\\\\\\\\\"}]\\"},\\"bold\\":true}\',Text2:\'{\\"score\\":{\\"name\\":\\"Rows\\",\\"objective\\":\\"RJ\\"},\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"playsound ui.button.click neutral @a ~ ~ ~ .5 2 .5\\"},\\"color\\":\\"aqua\\"}\',Text3:\'{\\"text\\":\\"Columns\\",\\"bold\\":true}\',Text4:\'{\\"score\\":{\\"name\\":\\"Columns\\",\\"objective\\":\\"RJ\\"},\\"color\\":\\"aqua\\"}\'}"}'},{id:command_block_minecart,Command:'setblock ~ ~2 ~10 command_block[facing=down]{auto:1,Command:"data merge block ~ ~ ~ {auto:0}"}'},{id:command_block_minecart,Command:'setblock ~ ~1 ~10 chain_command_block[facing=down]{auto:1,Command:"execute if score Roof RJ matches 1 run data merge block ~ ~-1 ~3 {Text1:\'{\\"text\\":\\"\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"scoreboard players set Roof RJ 0\\"}}\',Text2:\'{\\"text\\":\\"Roof\\",\\"bold\\":true,\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"data merge block ~ ~2 ~-3 {auto:1}\\"}}\',Text3:\'{\\"text\\":\\"True\\",\\"color\\":\\"green\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"playsound ui.button.click neutral @s ~ ~ ~ .5 2 .5\\"}}\'}"}'},{id:command_block_minecart,Command:'setblock ~ ~ ~10 chain_command_block[facing=down]{auto:1,Command:"execute if data block ~ ~1 ~ {SuccessCount:0} run data merge block ~ ~ ~3 {Text1:\'{\\"text\\":\\"\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"scoreboard players set Roof RJ 1\\"}}\',Text2:\'{\\"text\\":\\"Roof\\",\\"bold\\":true,\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"data merge block ~ ~2 ~-3 {auto:1}\\"}}\',Text3:\'{\\"text\\":\\"False\\",\\"color\\":\\"red\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"playsound ui.button.click neutral @s ~ ~ ~ .5 2 .5\\"}}\'}"}'},{id:command_block_minecart,Command:'setblock ~ ~-1 ~10 command_block[facing=down]{auto:1,Command:"data merge block ~ ~ ~ {auto:0}"}'},{id:command_block_minecart,Command:'setblock ~ ~-2 ~10 chain_command_block[facing=south]{auto:1,Command:"execute if data block ~1 ~ ~-2 {auto:1b} run data merge block ~ ~1 ~3 {Text1:\'{\\"text\\":\\"Generation\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"data merge block ~1 ~-1 ~-5 {auto:0}\\"},\\"bold\\":true}\',Text2:\'{\\"text\\":\\"Speed\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"data merge block ~ ~ ~-3 {auto:1}\\"},\\"bold\\":true}\',Text3:\'{\\"text\\":\\"x2\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"playsound ui.button.click neutral @s ~ ~ ~ .5 2 .5\\"},\\"color\\":\\"aqua\\"}\'}"}'},{id:command_block_minecart,Command:'setblock ~ ~-2 ~11 chain_command_block[facing=up]{auto:1,Command:"execute if data block ~ ~ ~-1 {SuccessCount:0} run data merge block ~ ~1 ~2 {Text1:\'{\\"text\\":\\"Generation\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"data merge block ~1 ~-1 ~-5 {auto:1}\\"},\\"bold\\":true}\',Text2:\'{\\"text\\":\\"Speed\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"data merge block ~ ~ ~-3 {auto:1}\\"},\\"bold\\":true}\',Text3:\'{\\"text\\":\\"x1\\",\\"clickEvent\\":{\\"action\\":\\"run_command\\",\\"value\\":\\"playsound ui.button.click neutral @s ~ ~ ~ .5 2 .5\\"},\\"color\\":\\"aqua\\"}\'}"}'},{id:command_block_minecart,Command:'setblock ~1 ~-2 ~5 repeating_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 at @e[tag=RJ.Head] run tag @e[tag=RJ.Cell,tag=!RJ.Body,tag=!RJ.Head,distance=..5] add RJ.Option"}'},{id:command_block_minecart,Command:'setblock ~1 ~-1 ~5 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 unless entity @e[tag=RJ.Option] run tag @e remove RJ.Head"}'},{id:command_block_minecart,Command:'setblock ~1 ~ ~5 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 unless entity @e[tag=RJ.Option] run tag @e[tag=RJ.Body,tag=!RJ.NoOption,sort=random,limit=1] add RJ.Head"}'},{id:command_block_minecart,Command:'setblock ~1 ~1 ~5 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e[tag=RJ.Option,sort=random,limit=1] add RJ.NewHead"}'},{id:command_block_minecart,Command:'setblock ~1 ~2 ~5 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 at @e[tag=RJ.Head] positioned ~ ~ ~-4 if entity @e[tag=RJ.NewHead,distance=..1] run fill ~-1 ~ ~2 ~1 ~3 ~2 air"}'},{id:command_block_minecart,Command:'setblock ~1 ~3 ~5 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 at @e[tag=RJ.Head] positioned ~4 ~ ~ if entity @e[tag=RJ.NewHead,distance=..1] run fill ~-2 ~ ~-1 ~-2 ~3 ~1 air"}'},{id:command_block_minecart,Command:'setblock ~1 ~4 ~5 chain_command_block[facing=south]{auto:1,Command:"execute if score Data RJ.Data matches 4 at @e[tag=RJ.Head] positioned ~ ~ ~4 if entity @e[tag=RJ.NewHead,distance=..1] run fill ~-1 ~ ~-2 ~1 ~3 ~-2 air"}'},{id:command_block_minecart,Command:'setblock ~1 ~4 ~6 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 4 at @e[tag=RJ.Head] positioned ~-4 ~ ~ if entity @e[tag=RJ.NewHead,distance=..1] run fill ~2 ~ ~-1 ~2 ~3 ~1 air"}'},{id:command_block_minecart,Command:'setblock ~1 ~3 ~6 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e[tag=RJ.Head] add RJ.Body"}'},{id:command_block_minecart,Command:'setblock ~1 ~2 ~6 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 4 as @e[tag=RJ.Option] run tag @e remove RJ.Head"}'},{id:command_block_minecart,Command:'setblock ~1 ~1 ~6 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e remove RJ.Option"}'},{id:command_block_minecart,Command:'setblock ~1 ~ ~6 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e[tag=RJ.NewHead] add RJ.Head"}'},{id:command_block_minecart,Command:'setblock ~1 ~-1 ~6 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e[tag=RJ.NewHead] add RJ.Body"}'},{id:command_block_minecart,Command:'setblock ~1 ~-2 ~6 chain_command_block[facing=south]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e remove RJ.NewHead"}'},{id:command_block_minecart,Command:'setblock ~1 ~-2 ~7 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 as @e[tag=RJ.Body] at @s unless entity @e[tag=RJ.Cell,tag=!RJ.Body,distance=..5] run tag @s add RJ.NoOption"}'},{id:command_block_minecart,Command:'setblock ~1 ~-1 ~7 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e[tag=RJ.End,tag=RJ.Head] add RJ.NoOption"}'},{id:command_block_minecart,Command:'setblock ~1 ~ ~7 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 as @e[tag=RJ.End,tag=RJ.Head] run tag @e[tag=RJ.Body,tag=!RJ.NoOption,sort=random,limit=1] add RJ.Head"}'},{id:command_block_minecart,Command:'setblock ~1 ~1 ~7 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e[tag=RJ.End,tag=RJ.Head] remove RJ.Head"}'},{id:command_block_minecart,Command:'setblock ~1 ~2 ~7 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 if score Roof RJ matches 1 unless entity @e[tag=RJ.Cell,tag=!RJ.Body] at @e[tag=RJ.Cell] run fill ~-2 ~3 ~-2 ~2 ~3 ~2 white_concrete replace air"}'},{id:command_block_minecart,Command:'setblock ~1 ~3 ~7 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 unless entity @e[tag=RJ.Cell,tag=!RJ.Body] run tellraw @a [\\"\\",{\\"text\\":\\"Maze Generator \\",\\"bold\\":true,\\"color\\":\\"red\\"},{\\"text\\":\\"Maze generation finished.\\",\\"color\\":\\"gold\\"}]"}'},{id:command_block_minecart,Command:'setblock ~1 ~4 ~7 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 unless entity @e[tag=RJ.Cell,tag=!RJ.Body] run scoreboard players set Data RJ.Data 0"}'},{id:command_block_minecart,Command:'setblock ~1 ~-2 ~8 repeating_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 at @e[tag=RJ.Head] run tag @e[tag=RJ.Cell,tag=!RJ.Body,tag=!RJ.Head,distance=..5] add RJ.Option"}'},{id:command_block_minecart,Command:'setblock ~1 ~-1 ~8 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 unless entity @e[tag=RJ.Option] run tag @e remove RJ.Head"}'},{id:command_block_minecart,Command:'setblock ~1 ~ ~8 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 unless entity @e[tag=RJ.Option] run tag @e[tag=RJ.Body,tag=!RJ.NoOption,sort=random,limit=1] add RJ.Head"}'},{id:command_block_minecart,Command:'setblock ~1 ~1 ~8 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e[tag=RJ.Option,sort=random,limit=1] add RJ.NewHead"}'},{id:command_block_minecart,Command:'setblock ~1 ~2 ~8 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 at @e[tag=RJ.Head] positioned ~ ~ ~-4 if entity @e[tag=RJ.NewHead,distance=..1] run fill ~-1 ~ ~2 ~1 ~3 ~2 air"}'},{id:command_block_minecart,Command:'setblock ~1 ~3 ~8 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 at @e[tag=RJ.Head] positioned ~4 ~ ~ if entity @e[tag=RJ.NewHead,distance=..1] run fill ~-2 ~ ~-1 ~-2 ~3 ~1 air"}'},{id:command_block_minecart,Command:'setblock ~1 ~4 ~8 chain_command_block[facing=south]{auto:1,Command:"execute if score Data RJ.Data matches 4 at @e[tag=RJ.Head] positioned ~ ~ ~4 if entity @e[tag=RJ.NewHead,distance=..1] run fill ~-1 ~ ~-2 ~1 ~3 ~-2 air"}'},{id:command_block_minecart,Command:'setblock ~1 ~4 ~9 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 4 at @e[tag=RJ.Head] positioned ~-4 ~ ~ if entity @e[tag=RJ.NewHead,distance=..1] run fill ~2 ~ ~-1 ~2 ~3 ~1 air"}'},{id:command_block_minecart,Command:'setblock ~1 ~3 ~9 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e[tag=RJ.Head] add RJ.Body"}'},{id:command_block_minecart,Command:'setblock ~1 ~2 ~9 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 4 as @e[tag=RJ.Option] run tag @e remove RJ.Head"}'},{id:command_block_minecart,Command:'setblock ~1 ~1 ~9 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e remove RJ.Option"}'},{id:command_block_minecart,Command:'setblock ~1 ~ ~9 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e[tag=RJ.NewHead] add RJ.Head"}'},{id:command_block_minecart,Command:'setblock ~1 ~-1 ~9 chain_command_block[facing=down]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e[tag=RJ.NewHead] add RJ.Body"}'},{id:command_block_minecart,Command:'setblock ~1 ~-2 ~9 chain_command_block[facing=south]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e remove RJ.NewHead"}'},{id:command_block_minecart,Command:'setblock ~1 ~-2 ~10 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 as @e[tag=RJ.Body] at @s unless entity @e[tag=RJ.Cell,tag=!RJ.Body,distance=..5] run tag @s add RJ.NoOption"}'},{id:command_block_minecart,Command:'setblock ~1 ~-1 ~10 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e[tag=RJ.End,tag=RJ.Head] add RJ.NoOption"}'},{id:command_block_minecart,Command:'setblock ~1 ~ ~10 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 as @e[tag=RJ.End,tag=RJ.Head] run tag @e[tag=RJ.Body,tag=!RJ.NoOption,sort=random,limit=1] add RJ.Head"}'},{id:command_block_minecart,Command:'setblock ~1 ~1 ~10 chain_command_block[facing=up]{auto:1,Command:"execute if score Data RJ.Data matches 4 run tag @e[tag=RJ.End,tag=RJ.Head] remove RJ.Head"}'},{id:command_block_minecart,Command:'tag @a add RJ.Credits'},{id:command_block_minecart,Command:'title @a actionbar ["",{"text":"Maze Generator ","bold":true,"color":"red"},{"text":"Machine Extracted.","color":"gold"}]'},{id:command_block_minecart,Command:'setblock ~ ~1 ~ command_block{auto:1,Command:"fill ~ ~ ~ ~ ~-3 ~ air"}'},{id:command_block_minecart,Command:'kill @e[type=command_block_minecart,distance=..1]'}]}]}]}