User:SolidSC/Automated Building Bot/Build Water Maze

execute @e[name=Drone] ~ ~ ~ detect ~2 ~ ~ minecraft:water 0 summon armor_stand ~2 ~ ~ {Tags:["R","XP"]} execute @e[name=Drone] ~ ~ ~ detect ~-2 ~ ~ minecraft:water 0 summon armor_stand ~-2 ~ ~ {Tags:["R","XN"]} execute @e[name=Drone] ~ ~ ~ detect ~ ~ ~2 minecraft:water 0 summon armor_stand ~ ~ ~2 {Tags:["R","ZP"]} execute @e[name=Drone] ~ ~ ~ detect ~ ~ ~-2 minecraft:water 0 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 ~ ~ ~ ~-2 ~ ~ minecraft:stone 6 execute @e[name=Drone] ~ ~ ~ execute @e[tag=XN,r=0] ~ ~ ~ fill ~ ~ ~ ~2 ~ ~ minecraft:stone 6 execute @e[name=Drone] ~ ~ ~ execute @e[tag=ZP,r=0] ~ ~ ~ fill ~ ~ ~ ~ ~ ~-2 minecraft:stone 6 execute @e[name=Drone] ~ ~ ~ execute @e[tag=ZN,r=0] ~ ~ ~ fill ~ ~ ~ ~ ~ ~2 minecraft:stone 6 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] ~ ~ ~ setblock ~ ~ ~ minecraft:stone 6
 * 1) Water Maze
 * 1) Build Maze Path
 * 1) Build Backtrack Path