User:SolidSC/Automated Building Bot/Build Maze

execute @e[name=Drone] ~ ~ ~ detect ~2 ~ ~ minecraft:stone 6 summon armor_stand ~2 ~ ~ {Tags:["R","XP"]} execute @e[name=Drone] ~ ~ ~ detect ~-2 ~ ~ minecraft:stone 6 summon armor_stand ~-2 ~ ~ {Tags:["R","XN"]} execute @e[name=Drone] ~ ~ ~ detect ~ ~ ~2 minecraft:stone 6 summon armor_stand ~ ~ ~2 {Tags:["R","ZP"]} execute @e[name=Drone] ~ ~ ~ detect ~ ~ ~-2 minecraft:stone 6 summon armor_stand ~ ~ ~-2 {Tags:["R","ZN"]} tp @e[name=Drone] @r[type=armor_stand,tag=R] function drone:maze_backtrack unless @e[type=armor_stand,tag=R,] # execute @e[name=Drone] ~ ~ ~  execute @e[tag=XP,r=0] ~ ~ ~ fill ~-1 ~ ~ ~-2 ~2 ~ minecraft:air execute @e[name=Drone] ~ ~ ~ execute @e[tag=XN,r=0] ~ ~ ~ fill ~1 ~ ~ ~2 ~2 ~ minecraft:air execute @e[name=Drone] ~ ~ ~ execute @e[tag=ZP,r=0] ~ ~ ~ fill ~ ~ ~-1 ~ ~2 ~-2 minecraft:air execute @e[name=Drone] ~ ~ ~ execute @e[tag=ZN,r=0] ~ ~ ~ fill ~ ~ ~1 ~ ~2 ~2 minecraft:air # execute @e[name=Drone] ~ ~ ~ execute @e[tag=ZP,r=0] ~ ~ ~ setblock ~ ~-1 ~ minecraft:command_block 10 execute @e[name=Drone] ~ ~ ~ execute @e[tag=ZN,r=0] ~ ~ ~ setblock ~ ~-1 ~ minecraft:command_block 11 execute @e[name=Drone] ~ ~ ~ execute @e[tag=XP,r=0] ~ ~ ~ setblock ~ ~-1 ~ minecraft:command_block 12 execute @e[name=Drone] ~ ~ ~ execute @e[tag=XN,r=0] ~ ~ ~ setblock ~ ~-1 ~ minecraft:command_block 13 # execute @e[name=Drone] ~ ~ ~ execute @e[tag=ZP,r=0] ~ ~ ~ setblock ~ ~-1 ~-1 minecraft:wool 0 execute @e[name=Drone] ~ ~ ~ execute @e[tag=ZN,r=0] ~ ~ ~ setblock ~ ~-1 ~1 minecraft:wool 0 execute @e[name=Drone] ~ ~ ~ execute @e[tag=XP,r=0] ~ ~ ~ setblock ~-1 ~-1 ~ minecraft:wool 0 execute @e[name=Drone] ~ ~ ~ execute @e[tag=XN,r=0] ~ ~ ~ setblock ~1 ~-1 ~ minecraft:wool 0 kill @e[tag=R] execute @e[name=Drone] ~ ~ ~ detect ~ ~ ~ minecraft:stone 6 fill ~ ~ ~ ~ ~2 ~ minecraft:air
 * 1) maze start