if turtle.getItemCount(1) == 0 or turtle.getItemCount(9) == 0 then print("Need two Cobblestone or Dirt in the first Slot"); print("Need Torches in the last Slot"); print("Shut down"); os.sleep(10); os.reboot(); end turtle.turnRight(); turtle.turnRight(); turtle.select(1); turtle.place(); turtle.turnRight(); turtle.turnRight(); turtle.up(); while (turtle.getItemCount(8) == 0 and turtle.getItemCount(9) > 0) do while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); while (turtle.detectUp()) do turtle.digUp(); os.sleep(1); end turtle.digDown(); turtle.down(); if (turtle.getItemCount(1) > 0) then turtle.placeDown(); end turtle.up(); while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); while (turtle.detectUp()) do turtle.digUp(); os.sleep(1); end turtle.digDown(); turtle.down(); if (turtle.getItemCount(1) > 0) then turtle.placeDown(); end turtle.up(); while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); while (turtle.detectUp()) do turtle.digUp(); os.sleep(1); end turtle.digDown(); turtle.down(); if (turtle.getItemCount(1) > 0) then turtle.placeDown(); end turtle.up(); while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); while (turtle.detectUp()) do turtle.digUp(); os.sleep(1); end turtle.digDown(); turtle.down(); if (turtle.getItemCount(1) > 0) then turtle.placeDown(); end turtle.up(); while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); while (turtle.detectUp()) do turtle.digUp(); os.sleep(1); end turtle.digDown(); turtle.down(); if (turtle.getItemCount(1) > 0) then turtle.placeDown(); end turtle.up(); turtle.turnRight(); while (turtle.detect()) do turtle.dig(); os.sleep(1); end if (turtle.getItemCount(1) > 0) then turtle.place(); end turtle.turnLeft(); while (turtle.detect()) do turtle.dig(); os.sleep(1); end turtle.forward(); while (turtle.detectUp()) do turtle.digUp(); os.sleep(1); end turtle.digDown(); turtle.down(); if (turtle.getItemCount(1) > 0) then turtle.placeDown(); end turtle.up(); turtle.turnRight(); turtle.turnRight(); turtle.select(9); turtle.place(); turtle.select(1); turtle.turnRight(); turtle.turnRight(); end turtle.down(); turtle.turnRight(); turtle.turnRight(); print("Moving back"); while (not turtle.detect()) do turtle.forward(); end print("DONE!!!");