Advertisement
Guest User

Cane

a guest
Oct 4th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. while true do
  2.  
  3. if turtle.getFuelLevel() <= 800 then
  4.   turtle.select(4)
  5.   turtle.refuel(63)
  6. end
  7.  
  8. turtle.select(15)
  9. if turtle.compareDown() == true then
  10.   turtle.turnRight()
  11. end
  12.  
  13. turtle.select(13)
  14. if turtle.compareDown() == true then
  15.   turtle.turnRight()
  16.   turtle.select(1)
  17.   turtle.dig()
  18.   turtle.turnLeft()
  19. end
  20.  
  21. turtle.select(14)
  22. if turtle.compareDown() == true then
  23.   turtle.select(1)
  24.   turtle.turnLeft()
  25.   turtle.drop(turtle.getItemCount()-1)
  26.   turtle.select(4)
  27.   if turtle.getItemCount() < 64 then
  28.     turtle.suckUp(64-turtle.getItemCount())
  29.   end
  30.   turtle.turnRight()
  31.   sleep(120)
  32. end
  33.  
  34. turtle.forward()
  35.  
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement