Advertisement
Guest User

asdfsad

a guest
May 22nd, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function up(blocks)
  2.   for i= 1, blocks do
  3.     turtle.up()
  4.   end
  5. end
  6.  
  7. function forward(blocks)
  8.   for i= 1, blocks do
  9.     turtle.forward()
  10.   end
  11. end
  12.  
  13. function left(blocks)
  14.   for i= 1, blocks do
  15.     turtle.turnLeft()
  16.   end
  17. end
  18.  
  19. function right(blocks)
  20.   for i= 1, blocks do
  21.     turtle.turnRight()
  22.   end
  23. end
  24.  
  25. up(100)
  26. forward(50)
  27. right(1)
  28. forward(17)
  29. left(1)
  30. forward(30)
  31. turtle.place()
  32. right(2)
  33. forward(30)
  34. right(1)
  35. forward(1)
  36. right(2)
  37. turtle.place()
  38. right(2)
  39. forward(20)
  40. turtle.place()
  41. left(1)
  42. forward(50)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement