Advertisement
Guest User

farm

a guest
Nov 25th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. function plant()
  2.   for i= 1, 7 do
  3.     turtle.placeDown(turtle.select(1))
  4.     turtle.forward()
  5.   end
  6. end  
  7. function backUp()
  8.   for j=1, 7 do
  9.     turtle.back()
  10.   end
  11. end
  12. function harvest()
  13.   for k= 1, 7 do
  14.     turtle.digDown()
  15.     turtle.suckDown()
  16.     sleep(1)
  17.     turtle.forward()
  18.   end
  19. end
  20. function dropOff()
  21.   turtle.back()
  22.   turtle.dropDown(turtle.getItemCount(turtle.select(2)) )
  23.   turtle.dropDown(turtle.getItemCount(turtle.select(1))-7 )
  24.   turtle.forward()
  25. end
  26. while true do
  27.   --plant()
  28.   --backUp()
  29.   --sleep(60)
  30.   harvest()
  31.   backUp()
  32.   dropOff()
  33.   sleep(10)
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement