Advertisement
jdroid91

wheatFarm

Oct 7th, 2023 (edited)
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. local maxLength = 9
  2. turtle.forward()
  3.  
  4. local index2 = 0
  5. while (index2 < maxLength)
  6. do
  7.     local index = 1
  8.     while (index < maxLength)
  9.     do
  10.         turtle.digDown()
  11.         turtle.select(1)
  12.         turtle.placeDown()
  13.         turtle.forward()
  14.         index = index + 1
  15.     end
  16.     if (index2 ~= maxLength - 1)
  17.     then
  18.         turtle.digDown()
  19.         turtle.select(1)
  20.         turtle.placeDown()
  21.         if (index2 % 2 == 0)
  22.         then
  23.             turtle.turnRight()
  24.             turtle.forward()
  25.             turtle.turnRight()
  26.         else
  27.             turtle.turnLeft()
  28.             turtle.forward()
  29.             turtle.turnLeft()
  30.         end
  31.     end
  32.     index2 = index2 + 1
  33. end
  34.  
  35. turtle.digDown()
  36. turtle.select(1)
  37. turtle.placeDown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement