Advertisement
xKevinn

Untitled

Feb 14th, 2013
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local invslot = 2
  2. while true do
  3.     if turtle.detectDown() == true then
  4.         for i=1, invslot do
  5.             turtle.select(i)
  6.             print("i: "..i)
  7.             print("turtle.compare: "..turtle.compare)
  8.             if turtle.compare == true and i == 1 then
  9.                 turtle.dig()
  10.                 turtle.forward()
  11.                 turtle.digUp()
  12.                 turtle.up()
  13.                 turtle.digUp()
  14.                 turtle.up()
  15.                 turtle.digUp()
  16.                 turtle.up()
  17.                 turtle.digUp()
  18.                 turtle.up()
  19.                 turtle.down()
  20.                 turtle.down()
  21.                 turtle.down()
  22.                 turtle.down()
  23.             elseif turtle.compare == true and i == 2 then
  24.                 turtle.dig()
  25.                 turtle.forward()
  26.             end
  27.         end
  28.             if turtle.compare == false then
  29.                 while turtle.compare == false and turtle.detectDown() == true do
  30.                     turtle.forward()
  31.                     if turtle.detect() == true then
  32.                         turtle.turnLeft()
  33.                         turtle.forward()
  34.                     else
  35.                         turtle.forward()
  36.                     end
  37.                 end
  38.             end
  39.     else
  40.     end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement