Advertisement
Guest User

prog

a guest
Dec 17th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. function farm()
  2.   for i=1,5 do
  3. --    turtle.digDown("left")
  4.     turtle.placeDown()
  5.     turtle.forward()
  6.   end
  7. end
  8.  
  9. function left()
  10.   turtle.turnLeft()
  11.   turtle.forward()
  12.   turtle.turnLeft()
  13.   turtle.forward()
  14. end
  15.  
  16. function right()
  17.   turtle.turnRight()
  18.   turtle.forward()
  19.   turtle.turnRight()
  20.   turtle.forward()
  21. end
  22.  
  23. function dump()
  24.   turtle.select(2)
  25.   turtle.dropDown()
  26.   turtle.select(1)
  27. end
  28.  
  29. function again()
  30.   turtle.turnLeft()
  31.   turtle.forward()
  32.   turtle.forward()
  33.   turtle.turnLeft()
  34.   for i=1,6 do
  35.     turtle.forward()
  36.   end
  37.   turtle.turnLeft()
  38.   turtle.turnLeft()
  39. end
  40.  
  41. --Main program
  42. turtle.forward()
  43. farm()
  44. right()
  45. farm()
  46. left()
  47. farm()
  48. --dump()
  49. again()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement