Advertisement
GooGoo

Loose Item Collector Turtle

Aug 23rd, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. function forwardBy(n)
  2.     for i=1,n do
  3.             turtle.forward()
  4.     end
  5. end
  6.  
  7. function collectItems()
  8.     forwardBy(8)
  9.     turtle.turnRight()
  10.     forwardBy(1)
  11.     turtle.turnRight()
  12.     forwardBy(7)
  13.     turtle.turnLeft()
  14.     forwardBy(1)
  15.     turtle.turnLeft()
  16.     forwardBy(7)
  17.     turtle.turnRight()
  18.     forwardBy(1)
  19.     turtle.turnRight()
  20.     forwardBy(7)
  21.     turtle.turnLeft()
  22.     forwardBy(1)
  23.     turtle.turnLeft()
  24.     forwardBy(7)
  25.     turtle.turnRight()
  26.     forwardBy(1)
  27.     turtle.turnRight()
  28.     forwardBy(7)
  29.     turtle.turnLeft()
  30.     forwardBy(1)
  31.     turtle.turnLeft()
  32.     forwardBy(7)
  33.     turtle.turnRight()
  34.     forwardBy(1)
  35.     turtle.turnRight()
  36.     forwardBy(8)
  37.     turtle.turnRight()
  38.     forwardBy(7)
  39.     turtle.turnRight()
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement