BHTAelitepwn

biofuel

Aug 10th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. function suck()
  2.     while true do
  3.         for i=1,16 do
  4.             turtle.suck()
  5.     end
  6.     turtle.turnRight()
  7.     turtle.turnRight()
  8. end
  9.  
  10. function transport()
  11.     turtle.forward()
  12.     turtle.turnRight()
  13.     while not turtle.detect() do
  14.         turtle.forward()
  15.     end
  16.     turtle.turnRight()
  17.     while not turtle.detect() do
  18.         turtle.up()
  19.     end
  20.     turtle.forward()
  21.     turtle.forward()
  22.     for i=1,16 do
  23.         turtle.select(i)
  24.         turtle.dropDown()
  25.     end
  26. end
  27.  
  28. function back()
  29.     turtle.turnRight()
  30.     turtle.turnRight()
  31.     turtle.forward()
  32.     turtle.forward()
  33.     while not turtle.detectDown() do
  34.         turtle.down()
  35.     end
  36.     turtle.turnLeft()
  37.     while turtle.detectDown() do
  38.         turtle.forward()
  39.     end
  40.     turtle.turnLeft()
  41.     turtle.forward()
  42. end
  43.  
  44. while true do
  45.     suck()
  46.     transport()
  47.     back()
  48. end
Advertisement
Add Comment
Please, Sign In to add comment