Advertisement
Redxone

Updated FastTurtle API

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