Advertisement
xbsktball10x

PA

Dec 14th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. function outerRing()
  2. x = 1
  3. if turtle.getItemCount(x) == 0 then
  4. repeat turtle.select(x+1)
  5. x = x + 1
  6. if x == 16 then
  7. x = 1
  8. y = 2
  9. end
  10. if y == 2 then
  11. os.reboot()
  12. end
  13. until turtle.getItemCount(x) > 0
  14. end
  15. turtle.placeDown()
  16. end
  17. function innerRing()
  18. x = 1
  19. if turtle.getItemCount(x) == 0 then
  20. repeat turtle.select(x+1)
  21. x = x + 1
  22. if x == 16 then
  23. x = 1
  24. y = 2
  25. end
  26. if y == 2 then
  27. os.reboot()
  28. end
  29. until turtle.getItemCount(x) > 0
  30. end
  31. turtle.placeDown()
  32. end
  33. function place()
  34. turtle.select(1)
  35. x = 1
  36. if turtle.getItemCount(x) == 0 then
  37. repeat turtle.select(x+1)
  38. x = x + 1
  39. if x == 16 then
  40. x = 1
  41. y = 2
  42. end
  43. if y == 2 then
  44. os.reboot()
  45. end
  46. until turtle.getItemCount(x) > 0
  47. end
  48. turtle.placeUp()
  49. turtle.placeDown()
  50. end
  51.  
  52. for k = 1,4 do
  53.  
  54. for i = 1,39 do
  55. innerRing()
  56. turtle.forward()
  57. end
  58. turtle.turnRight()
  59. end
  60. turtle.turnRight()
  61. turtle.forward()
  62. turtle.down()
  63. turtle.turnLeft()
  64. for k = 1,4 do
  65.  
  66. for i = 1,40 do
  67. place()
  68. turtle.forward()
  69. end
  70. turtle.turnRight()
  71. end
  72. for k = 1,4 do
  73.  
  74. for i = 1,41 do
  75. place()
  76. turtle.forward()
  77. end
  78. turtle.turnRight()
  79. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement