Cardwell

Turtle melonfarm ver 2

Jun 15th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. function fuelling()
  2. if turtle.getfuel() <= 10 then
  3. print("Adding fuel..")
  4. turtle.select(16)
  5. turtle.refuel(1)
  6. turtle.select(1)
  7. print("Done refuelling!")
  8. end
  9. turtle.print("Digging..")
  10. turtle.dig(8)
  11. turtle.turnLeft()
  12. turtle.up(1)
  13. turtle.forward(3)
  14. while turtle.digDown(1) do
  15. turtle.turnLeft()
  16. turtle.dig(7)
  17. turtle.forward(1)
  18. turtle.turnLeft()
  19. turtle.forward(3)
  20. turtle.turnLeft()
  21. turtle.forward(1)
  22. while sleep(10) do
  23. end
  24. function fuelling()
  25. if turtle.getfuel() <= 10 then
  26. print("Adding fuel..")
  27. turtle.select(16)
  28. turtle.refuel(1)
  29. turtle.select(1)
  30. print("Done refuelling!")
  31. end
  32. end
  33. turtle.print("Digging..")
  34. turtle.dig(8)
  35. turtle.turnLeft()
  36. turtle.up(1)
  37. turtle.forward(3)
  38. while turtle.digDown(1) do
  39. turtle.turnLeft()
  40. turtle.dig(7)
  41. turtle.forward(1)
  42. turtle.turnLeft()
  43. turtle.forward(3)
  44. turtle.turnLeft()
  45. turtle.forward(1)
  46. while sleep(10) do
  47. end
  48. end
  49. end
  50. end
Add Comment
Please, Sign In to add comment