Kaerius

filler

Nov 5th, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. local n=1
  2. local x=1
  3. for y=1,turtle.getFuelLevel (),1 do
  4.     turtle.select(n)
  5.     if turtle.getItemCount(n) == 0
  6.         then n=n+1
  7.     end
  8.     if turtle.detect()
  9.         then
  10.         if x==1 then
  11.             turtle.turnLeft()
  12.             turtle.forward()
  13.             turtle.placeDown()
  14.             turtle.turnLeft()
  15.             x=x+1
  16.             else
  17.             turtle.turnRight()
  18.             turtle.forward()
  19.             turtle.placeDown()
  20.             turtle.turnRight()
  21.             x=x-1
  22.             end
  23.     end
  24.     if turtle.detectDown()
  25.         then turtle.forward()
  26.         else turtle.placeDown()
  27.     end
  28.     if n==17 then
  29.         break
  30.     end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment