Advertisement
Padilk

rubber

Aug 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. while not turtle.detectDown() do
  2. turtle.down()
  3. end
  4.  
  5. function capU()
  6. while not turtle.detectUp() do
  7. turtle.up()
  8. for i=1,4 do
  9. turtle.turnLeft()
  10. if turtle.detect() then
  11. turtle.dig()
  12. end
  13. end
  14. end
  15. end
  16.  
  17. function capD()
  18. while not turtle.detectDown() do
  19. turtle.down()
  20. for i=1,4 do
  21. turtle.turnLeft()
  22. if turtle.detect() then
  23. turtle.dig()
  24. end
  25. end
  26. end
  27. end
  28.  
  29. function out()
  30. for i=1,16 do
  31. turtle.select(i)
  32. turtle.drop()
  33. end
  34. end
  35.  
  36. while 1<2 do
  37. capU()
  38. os.sleep(60)
  39. capD()
  40. out()
  41. print("Fuel: "..turtle.getFuelLevel())
  42. os.sleep(60)
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement