Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. function select(slot)
  2. turtle.select(slot)
  3. while turtle.getItemCount(slot) == 0 do
  4. print("Waiting for items in slot "..slot)
  5. sleep(2)
  6. end
  7. end
  8.  
  9. function buildStoneRing()
  10. for i1=1,3 do
  11. for i=1,13 do
  12. if i == 6 or i == 8 then
  13. select(2)
  14. elseif i == 7 then
  15. select(3)
  16. else
  17. select(1)
  18. end
  19. turtle.placeUp()
  20. if i ~= 13 then
  21. turtle.forward()
  22. end
  23. end
  24. turtle.turnLeft()
  25. end
  26.  
  27. -- _
  28. for i=1,12 do
  29. if i ~= 6 and i ~= 7 and i ~= 8 then
  30. select(1)
  31. elseif i == 6 or i == 8 then
  32. select(2)
  33. elseif i == 7 then
  34. select(3)
  35. end
  36. turtle.placeUp()
  37. turtle.forward()
  38. end
  39. turtle.turnLeft()
  40. end
  41.  
  42. function buildUpsideDownStairs()
  43. for i1=1,3 do
  44. for i=1,13 do
  45. select(4)
  46. turtle.turnLeft()
  47. turtle.placeUp()
  48. turtle.turnRight()
  49. if i~=13 then turtle.forward() end
  50. end
  51. turtle.turnLeft()
  52. end
  53. for i=1,12 do
  54. select(4)
  55. turtle.turnLeft()
  56. turtle.placeUp()
  57. turtle.turnRight()
  58. turtle.forward()
  59. end
  60. turtle.turnLeft()
  61. end
  62.  
  63. function buildNormalStairs()
  64. for i1=1,3 do
  65. for i=1,13 do
  66. select(5)
  67. turtle.place()
  68. turtle.turnRight()
  69. if i~=13 then turtle.forward() turtle.turnLeft() end
  70. end
  71. turtle.turnRight()
  72. end
  73. for i=1,12 do
  74. select(5)
  75. turtle.place()
  76. turtle.turnRight()
  77. turtle.forward()
  78. turtle.turnLeft()
  79. end
  80. turtle.turnRight()
  81. end
  82.  
  83. --buildStoneRing()
  84. --turtle.down()
  85. --buildUpsideDownStairs()
  86. turtle.down()
  87. turtle.turnLeft()
  88. turtle.back()
  89. buildNormalStairs()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement