scottholdren

Untitled

Nov 26th, 2020 (edited)
748
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. turtle.select(1)
  2. turtle.refuel()
  3.  
  4. dir = 1
  5. for i = 1, 50 do
  6.     currentrow = i
  7.     currentdepth = 0
  8.     while true do
  9.         if turtle.detectDown() then
  10.             turtle.digDown()
  11.         end
  12.         if turtle.detect() then
  13.             while currentdepth > 0 do
  14.                 turtle.back()
  15.                 currentdepth = currentdepth - 1
  16.             end
  17.             break
  18.         else
  19.             turtle.forward()
  20.             currentdepth = currentdepth + 1
  21.         end
  22.     end
  23.     turtle.turnRight()
  24.     turtle.forward()
  25.     turtle.turnLeft()
  26.     if turtle.getFuelLevel() < 10 then
  27.         turtle.refuel()
  28.     end
  29. end
RAW Paste Data