xmann110

Untitled

Feb 7th, 2020
90
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function refuel()
  2. if turtle.getFuelLevel() < 10 then
  3. turtle.select(1)
  4. turtle.refuel(1)
  5. end
  6. end
  7.  
  8. function harvest_row()
  9. for i=1, 128 do
  10. refuel()
  11. turtle.dig()
  12. turtle.forward()
  13. turtle.digDown()
  14. end
  15. end
  16.  
  17. function harvest_section()
  18. harvest_row()
  19. turtle.forward()
  20. turtle.turnLeft()
  21. turtle.forward()
  22. turtle.turnLeft()
  23. harvest_row()
  24. turtle.forward()
  25. end
  26.  
  27. while true do
  28. harvest_section()
  29. refuel()
  30. for v=1, 16 do
  31. turtle.select(v)
  32. turtle.dropDown()
  33. end
  34. turtle.select(1)
  35. turtle.turnLeft()
  36. turtle.forward()
  37. turtle.turnLeft()
  38. if turtle.detectUp() then
  39. break
  40. end
  41. end
RAW Paste Data