Pinkishu

cleartype

May 6th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. turtle.select(1)
  2. if turtle.getItemCount(1) == 0 then
  3.   print("Please put item in slot1")
  4.   return
  5. end
  6.  
  7. step = true
  8. while step do
  9.   step = false
  10.  
  11.   if turtle.compareUp() then
  12.     turtle.digUp()
  13.     turtle.up()
  14.     step = true
  15.   elseif turtle.compareDown() then
  16.     turtle.digdown()
  17.     turtle.down()
  18.   else
  19.     for i=1,4,1 do
  20.      
  21.       if turtle.compare() then
  22.         step=true
  23.         turtle.dig()
  24.         turtle.forward()
  25.         break
  26.       end
  27.       turtle.turnLeft()
  28.     end
  29.   end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment