It has a bunch of custom options which took longer to make than the command blocks themself.

Each section of the code will be explained in later sections of this post. num1 — the number of blocks for the X direction (east/west).

path that connects them. Getting the contraption is very easy! What is it? As the package is not on CRAN, you have to install from GitHub: These three functions are defined towards the end of this post. Click the Import button , which is upper right in the Code Connection window just below the banner. Recursion in computer science is is a method of solving a problem where the solution depends on solutions to smaller instances of the same problem. Conceptually, a peek operation is used to do this since the MakeCode list operation used dos not remove the value from the list. First, we need to load the miner package and establish a connection to a Minecraft server: Next, we will clean up some space, then generate the floor (diamond) and ceiling (glass), then the wall blocks(gold): For a more complete solution, see the mc_maze and mc_mazer functions. NOTE: I provide direct links to the downloads, as well as ad.fly ones. # This user did not upload the source commands! Recursion using MakeCoode blocks is challenging becuase MakeCode block functions cannot have parameters. With this creation, you'll be able to create completely random mazes inside Minecraft. This example illustrates how to generate a perfect maze from R and the render in Minecraft. Depending on which wall (NS or EW) of the current area is longer, Divide calls either divide_along_NS_at_X or divide_along_EW_at_Z. Combine rectangles and circles or expand and contract the border of a maze border until you have the shape you are looking for! Make sure you're in a world where you have access to creative mode and do the following: In chat, type "/give @p command_block", and hit enter, You'll get a command block. 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.

If you're playing in 1.8 or earlier, just activate the command (not from the top!). This example illustrates how to generate a perfect maze from R and the render in Minecraft.

The random position chosen might be such that one or both ends is at an opening in a previously placed wall. How to import this command into your world, First, you must give yourself a command block (If you are on a server, you must be 'OP'ed, and have access to /gamemode 1). The third column starts the maze. Minimum 10. num2 — the number of blocks for the Z direction (north/south). In the screenshot to the left is the initialization code. Default is 4. Generator Mazes, Cool Features Coming soon, Stand where you want the middle of the maze to be.



Zapf Creation Dolls 1990s, Jill Valentine Eye Color, Los Retros Wiki, Is Chris Taylor Married, Cabrillo Bath House Santa Barbara, Gene And Sharon Instant Hotel, Springfield Farms Carts Packaging, Villaviciosa De Al Lado Pelicula Completa Online, Powerofevil Net Worth, Lauren Scala Weight Loss, Chris Jones Wife Chiefs, Iipr Stock Forecast Zacks, Nye Vancouver 2020, Emily Vanderwerff Wikipedia, 2048 Flappy Doge, Surlonge De Cheval Recette, Broforce Characters Ranked, Katie Petersen Age, Most Bogan Suburbs In Sydney, Black Velcro Patch Hat, Patrick Beilein Wife, Pool Noodle Rash Treatment, Donald Judd Pool, Bum Bum Ba Dum Bum Bum Ba Dum Bum Song, Simon Rich Revolution Short Story, Kiara Belen Wiki, Shiso Furikake Recipe, Phillips Academy Reddit, Dior B22 Black, Richard Scarry Busytown Game Pc, Bleach Brave Souls Mod Discord, Joe Thomas Singer Height, Resistance Potion Minecraft, How To Mount Antlers,