TovLenin

Turtle 9*9 farm

Nov 20th, 2013
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1. function rowplant()
  2.  for i = 1, 8 do
  3.   turtle.placeDown()
  4.   turtle.forward()
  5.   turtle.placeDown()
  6.  end
  7. end
  8. function rowget()
  9.  for i = 1, 8 do
  10.   turtle.digDown()
  11.   turtle.forward()
  12.   turtle.digDown()
  13.  end
  14. end
  15. function left()
  16.  turtle.turnLeft()
  17.  turtle.forward()
  18.  turtle.turnLeft()
  19. end
  20. function right()
  21.  turtle.turnRight()
  22.  turtle.forward()
  23.  turtle.turnRight()
  24. end
  25. function plantall()
  26. rowplant()
  27.  for i = 1, 4 do
  28.   left()
  29.   rowplant()
  30.   right()
  31.   rowplant()
  32.  end
  33. turtle.turnRight()
  34. rowplant()
  35. turtle.turnRight()
  36. rowplant()
  37. turtle.turnRight()
  38. turtle.turnRight()
  39. end
  40. function getall()
  41. rowget()
  42.  for i = 1, 4 do
  43.   left()
  44.   rowget()
  45.   right()
  46.   rowget()
  47.  end
  48. turtle.turnRight()
  49. rowget()
  50. turtle.turnRight()
  51. rowget()
  52. turtle.turnRight()
  53. turtle.turnRight()
  54. end
  55.  
  56. plantall()
  57. os.sleep(9000)
  58. getall()
Advertisement
Add Comment
Please, Sign In to add comment