Advertisement
poboivin

GoForward

Oct 3rd, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. tArgs={...}
  2. times = tArgs[1]
  3. function forward()
  4. if turtle.forward() == false then
  5.  
  6. if turtle.up() == true then
  7. forward()
  8. turtle.down()
  9. else
  10. shell.run('TurnLeft',1)
  11. forward()
  12. shell.run('TurnRight',1)
  13. forward()
  14. end
  15. sleep(0.25)
  16. end
  17. end
  18.  
  19. for i=1,times do
  20.  
  21. forward()
  22.  
  23.  
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement