Advertisement
Guest User

Farm

a guest
Feb 9th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.66 KB | None | 0 0
  1. --local funtion move()
  2.  -- turtle.digDown()
  3.  -- turtle.placeDown()
  4.  -- turtle.forward()
  5.  -- sleep(.3)
  6.  -- end
  7.  
  8. local count = 1
  9. local timer = 0
  10. local overallCount = 0
  11.  
  12.  
  13. while true do
  14.  
  15.  if count == 16 and overallCount < 8 then
  16.   turtle.digDown()
  17.   turtle.placeDown()
  18.   turtle.turnRight()
  19.   turtle.forward()
  20.   turtle.turnRight()
  21.   turtle.digDown()
  22.   turtle.placeDown()
  23.   turtle.forward()
  24.   count = count + 1
  25. print(count)
  26. else if count == 31 and overallCount < 8 then
  27.   turtle.digDown()
  28.   turtle.placeDown()
  29.   turtle.turnLeft()
  30.   turtle.forward()
  31.   turtle.turnLeft()
  32.   count = 1
  33.   overallCount = overallCount + 1
  34. print(count)
  35.  
  36.  
  37. else if count < 31 and overallCount < 8 then
  38.   turtle.digDown()
  39.   turtle.placeDown()
  40.   turtle.forward()
  41.   count = count + 1
  42.  
  43.   print(count)
  44.  
  45. else if overallCount == 8 then
  46. turtle.turnLeft()
  47. turtle.forward()
  48. turtle.forward()
  49. turtle.forward()
  50. turtle.forward()
  51. turtle.forward()
  52. turtle.forward()
  53. turtle.forward()
  54. turtle.forward()
  55. turtle.forward()
  56. turtle.forward()
  57. turtle.forward()    
  58. turtle.forward()
  59. turtle.forward()
  60. turtle.forward()
  61. turtle.forward()
  62. turtle.forward()
  63. turtle.turnRight()
  64. turtle.dropUp()
  65. turtle.select(2)
  66. turtle.dropUp()
  67. turtle.select(3)
  68. turtle.dropUp()
  69. turtle.select(4)
  70. turtle.dropUp()
  71. turtle.select(5)
  72. turtle.dropUp()
  73. turtle.select(6)
  74. turtle.dropUp()
  75. turtle.select(7)
  76. turtle.dropUp()
  77. turtle.select(8)
  78. turtle.dropUp()
  79. turtle.select(9)
  80. turtle.dropUp()
  81. turtle.select(1)
  82.  
  83. count = 1
  84. overallCount = 0
  85. sleep(3900)
  86. end
  87.  -- else if count > 16 a c
  88.  -- turtle.digDown()
  89.   --turtle.placeDown()
  90.   --turtle.forward()
  91.   ---count = count + 1
  92.  
  93.  
  94.   end
  95.   end
  96.   end
  97.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement