Advertisement
Guest User

farm2

a guest
May 28th, 2015
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.21 KB | None | 0 0
  1.    
  2. turtle.select(16)
  3. turtle.dig()
  4. turtle.forward()
  5. turtle.forward()
  6. turtle.turnLeft()
  7. turtle.turnLeft()
  8. turtle.place()
  9. turtle.select(1)
  10. turtle.turnRight()
  11. turtle.turnRight()
  12. turtle.forward()
  13. turtle.turnLeft()
  14. turtle.forward()
  15.  
  16. function farm()
  17.   for i=1,4 do
  18.     if i ~= 1 then
  19.       turtle.forward()
  20.     end
  21.     success,data = turtle.inspectDown()
  22.     if data.name == "minecraft:potatoes" and data.metadata == 7 then
  23.       turtle.digDown()
  24.       turtle.placeDown()
  25.     end
  26.   end
  27. end
  28.  
  29. farm()
  30.  
  31. turtle.turnRight()
  32. turtle.forward()
  33. turtle.turnRight()
  34. --turtle.back()
  35.  
  36. farm()
  37.  
  38. turtle.turnLeft()
  39. turtle.forward()
  40. turtle.turnLeft()
  41. --turtle.back()
  42.  
  43. farm()
  44.  
  45. turtle.turnRight()
  46. turtle.forward()
  47. turtle.turnRight()
  48. --turtle.back()
  49.  
  50. farm()
  51.  
  52. turtle.forward()
  53. turtle.turnRight()
  54. turtle.forward()
  55. turtle.forward()
  56. turtle.forward()
  57. turtle.forward()
  58. turtle.select(16)
  59. turtle.dig()
  60. turtle.forward()
  61. turtle.forward()
  62. turtle.turnRight()
  63. turtle.turnRight()
  64. turtle.place()
  65. turtle.select(1)
  66. turtle.turnRight()
  67. turtle.forward()
  68. turtle.forward()
  69. turtle.turnLeft()
  70. for i=1,16 do
  71.   turtle.select(i)
  72.   turtle.drop()
  73. end
  74. turtle.turnRight()
  75. turtle.back()
  76. turtle.back()
  77. turtle.turnLeft()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement