ravneravn

outline

Dec 14th, 2013
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. slot = 1
  2.  
  3. local function checkSlot()
  4. if turtle.getItemCount(slot) == 0 then
  5. slot = slot +1
  6. turtle.select(slot)
  7. end
  8. end
  9.  
  10. turtle.select(slot)
  11.  
  12. while true do
  13.  
  14. while turtle.detectUp() do
  15. turtle.back()
  16. turtle.place()
  17. end
  18.  
  19. turtle.turnRight()
  20. turtle.back()
  21. turtle.turnLeft()
  22.  
  23. if not turtle.detectUp() then
  24. turtle.forward()
  25. turtle.turnRight()
  26. end
  27.  
  28. ----------------------------------------
  29.  
  30. while turtle.detectUp() do
  31. turtle.back()
  32. turtle.place()
  33. end
  34.  
  35. turtle.turnLeft()
  36. turtle.back()
  37. turtle.turnRight()
  38.  
  39. if not turtle.detectUp() then
  40. turtle.turnLeft()
  41. turtle.forward()
  42. turtle.forward()
  43. turtle.turnRight()
  44. end
  45.  
  46.  
  47. end
RAW Paste Data