Advertisement
DustinRosebery

wheat/cotton farm

Oct 22nd, 2013
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. t = turtle
  2.  
  3. local function sweep(x)
  4.     for i = 1, x do
  5.         t.forward()
  6.         t.digDown()
  7.     end
  8. end
  9.  
  10. local function row2()
  11.     t.turnRight()
  12.     t.forward()
  13.     t.turnRight()
  14. end
  15.  
  16. local function row3()
  17.     t.turnLeft()
  18.     t.forward()
  19.     t.turnLeft()
  20. end
  21.  
  22. local function depositLoop()
  23.     t.select(1)
  24.     t.dropDown()
  25.     os.sleep(800)
  26. end
  27.  
  28. local function gotoHome()
  29.     -- need block#'s --
  30.  
  31. sweep(x)
  32. row2()
  33. sweep(x)
  34. row(3)
  35. sweep(x)
  36. -- goto home function here --
  37. depositLoop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement