fbMarcel

| farm | potatoes

Jan 26th, 2021
769
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("######################")
  4. print("##  Farming Turtle  ##")
  5. print("######################")
  6. print(" ")
  7. print(" farming potatoes...")
  8. local cslot = 1
  9. local icount = 64
  10. turtle.select(cslot)
  11. function cf()
  12.   if icount <= 0 then
  13.     cslot = cslot + 1
  14.     icount = 64
  15.     turtle.select(cslot)
  16.   end
  17. end
  18. function fdp()
  19.   turtle.forward()
  20.   turtle.digDown()
  21.   turtle.placeDown()
  22.   cf()
  23. end
  24. function tl()
  25.   turtle.turnLeft()
  26.   turtle.forward()
  27.   turtle.turnLeft()
  28.   turtle.digDown()
  29.   turtle.placeDown()
  30.   cf()
  31. end
  32. function tr()
  33.   turtle.turnRight()
  34.   turtle.forward()
  35.   turtle.turnRight()
  36.   turtle.digDown()
  37.   turtle.placeDown()
  38.   cf()
  39. end
  40. turtle.turnLeft()
  41. for i=1,30 do
  42.   turtle.forward()
  43. end
  44. turtle.turnRight()
  45. turtle.up()
  46. for i=1,20 do
  47.   fdp()
  48. end
  49. tl()
  50. for i=1,19 do
  51.   fdp()
  52. end
  53. tr()
  54. for i=1,19 do
  55.   fdp()
  56. end
  57. tl()
  58. for i=1,19 do
  59.   fdp()
  60. end
  61. turtle.forward()
  62. turtle.turnRight()
  63. turtle.forward()
  64. turtle.forward()
  65. turtle.turnRight()
  66. for i=1,20 do
  67.   fdp()
  68. end
  69. tl()
  70. for i=1,19 do
  71.   fdp()
  72. end
  73. tr()
  74. for i=1,19 do
  75.   fdp()
  76. end
  77. tl()
  78. for i=1,19 do
  79.   fdp()
  80. end
  81. turtle.forward()
  82. turtle.turnLeft()
  83. for i=1,38 do
  84.   turtle.forward()
  85. end
  86. turtle.down()
  87. for i=1,16 do
  88.   turtle.select(i)
  89.   turtle.drop(64)
  90. end
  91. turtle.select(1)
  92. turtle.turnLeft()
  93. sleep(0.5)
  94. os.shutdown()
RAW Paste Data