Advertisement
Einer

t2

Dec 22nd, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1.  
  2. local args = {...}
  3.  
  4. local slot= 1
  5.  
  6. function layer()
  7. turtle.up()
  8. length=11
  9. line()
  10. stepright()
  11. length=3
  12. line()
  13. stepright()
  14. length=2
  15. for j=1,3 do
  16. line()
  17. stepright()
  18. end
  19. length=1
  20. for j=1,6 do
  21. line()
  22. stepright()
  23. end
  24. turtle.turnRight()
  25. length=2
  26. for j=1,3 do
  27. line()
  28. stepleft()
  29. end
  30. length=4
  31. line()
  32. stepleft()
  33. length=11
  34. line()
  35. end
  36.  
  37. function line()
  38. for i=1, length do
  39. turtle.placeDown()
  40. turtle.forward()
  41. checkblocks()
  42. end
  43. end
  44.  
  45. function stepright()
  46. turtle.turnRight()
  47. turtle.forward()
  48. turtle.turnLeft()
  49. end
  50.  
  51. function stepleft()
  52. turtle.turnLeft()
  53. turtle.forward()
  54. turtle.turnRight()
  55. end
  56.  
  57. function checkblocks()
  58. if turtle.getItemCount(slot) < 1 then
  59. slot = slot+1
  60. turtle.select(slot)
  61. end
  62. end
  63.  
  64. layer()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement