Advertisement
rhn

buildpath

rhn
Jun 21st, 2013
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. local function move()
  2.     turtle.placeDown()
  3.     while not turtle.forward() do
  4.             sleep(1)
  5.     end
  6. end
  7. local function move2()
  8.     while not turtle.forward() do
  9.             sleep(1)
  10.     end
  11. end
  12. local function plow()
  13.     move2()
  14.     turtle.select(1)
  15.             for i = 1,64 do
  16.                     move()
  17.             end
  18.             turtle.turnRight()
  19.             move()
  20.             turtle.turnRight()
  21.             move()
  22.     turtle.select(2)
  23.             for i = 1,64 do
  24.                     move()
  25.             end
  26.             turtle.turnLeft()
  27.             move2()
  28.             turtle.turnLeft()
  29.             move2()
  30.     turtle.select(3)
  31.     for i = 1,64 do
  32.             move()
  33.     end
  34.     turtle.back()
  35.     turtle.turnLeft()
  36.     move2()
  37.     move2()
  38.     turtle.turnRight()
  39. end
  40. plow()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement