Advertisement
flarf

Untitled

Jul 17th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. turtle.refuel()
  2. ix=3
  3. iy=3
  4. d=5
  5. while d>0 do
  6.     while turtle.detect() do
  7.         turtle.dig()
  8.     end
  9.     turtle.forward()
  10.     turtle.turnRight()
  11.     y=iy
  12.     while y>0 do
  13.         x=ix-1
  14.         while x>0 do
  15.             while turtle.detect() do
  16.                 turtle.dig()
  17.             end
  18.             turtle.forward()
  19.             x=x-1
  20.         end
  21.         turtle.turnRight()
  22.         turtle.turnRight()
  23.         if y>1 then
  24.             while turtle.detectUp() do
  25.                 turtle.digUp()
  26.             end
  27.             turtle.up()
  28.         end
  29.         y=y-1
  30.     end
  31.     x=ix-1
  32.     y=iy-1
  33.     while x>0 do
  34.         turtle.forward()
  35.         x=x-1
  36.     end
  37.     while y>0 do
  38.         turtle.down()
  39.         y=y-1
  40.     end
  41.     turtle.turnRight()
  42.     d=d-1
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement