rungholt

wheatfarm

Dec 20th, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function startPeon()
  2.   turtle.up()
  3.   turtle.forward()
  4. end
  5. function digPlace()
  6.   turtle.detectDown()
  7.   turtle.digDown()
  8.   turtle.select(2)
  9.   turtle.placeDown()
  10.   turtle.forward()
  11. end
  12. function switchLeft()
  13.   turtle.turnRight()
  14.   turtle.forward()
  15.   turtle.turnLeft()
  16. end
  17. function switchRight()
  18.   turtle.turnLeft()
  19.   turtle.forward()
  20.   turtle.turnRight()
  21. end
  22. function digLane()
  23.   while turtle.detectDown() do
  24.     digPlace()
  25.   end
  26.  
  27.   while not turtle.detectDown() do
  28.     turtle.down()
  29.     turtle.turnLeft()
  30.     turtle.turnLeft()
  31.   end
  32. end
  33. function goHome()
  34.  turtle.turnRight()
  35.  turtle.forward()
  36.  turtle.forward()
  37.  turtle.forward()
  38.  turtle.forward()
  39.  turtle.forward()
  40.  turtle.forward()
  41.  turtle.forward()
  42.  turtle.forward()
  43.  turtle.turnLeft()
  44. end
  45. startPeon()
  46. digLane()
  47. switchLeft()
  48. startPeon()
  49. digLane()
  50. switchRight()
  51. startPeon()
  52. digLane()
  53. switchLeft()
  54. startPeon()
  55. digLane()
  56. switchRight()
  57. startPeon()
  58. digLane()
  59. switchLeft()
  60. startPeon()
  61. digLane()
  62. switchRight()
  63. startPeon()
  64. digLane()
  65. switchLeft()
  66. startPeon()
  67. digLane()
  68. switchRight()
  69. goHome()
  70. sleep(1800)
  71.  
  72. while true do
  73.   shell.run("wheatfarm")
  74. end
Add Comment
Please, Sign In to add comment