Advertisement
MrTurtle

path2

Jun 21st, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. os.loadAPI("t")
  2. --PathFollower Turtle
  3. print("place path block in slot 1 and hit enter")
  4. read()
  5. while true do
  6.  while t.compareDown(1) do
  7.   t.forward()
  8.  end
  9.  t.back()
  10.  t.left()
  11.  t.forward()
  12.  if not t.compareDown(1) then
  13.   t.back()
  14.   t.turnAround()
  15.   t.forward()
  16.   if not t.compareDown(1) then
  17.    t.back()
  18.    t.right()
  19.   end
  20.  end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement