rerere284

Buildingparts

Mar 3rd, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.75 KB | None | 0 0
  1. -- WallLayer, Doorlayer, CeilingLayer
  2.  
  3.  
  4. function WallLayer()
  5. turtle.select(1)
  6. turtle.forward()
  7. turtle.turnLeft()
  8. for i=1, 9 do
  9. turtle.place()
  10. turtle.back()
  11. end
  12. function roundcorner()
  13. turtle.turnRight()
  14. turtle.forward()
  15. turtle.forward()
  16. turtle.turnLeft()
  17. turtle.forward()
  18. turtle.turnLeft()
  19. end
  20. roundcorner()
  21. for i=1, 6 do
  22. turtle.place()
  23. turtle.back()
  24. end
  25. roundcorner()
  26. for i=1, 9 do
  27. turtle.place()
  28. turtle.back()
  29. end
  30. roundcorner()
  31. for i=1, 6 do
  32. turtle.place()
  33. turtle.back()
  34. end
  35. turtle.turnRight()
  36. turtle.forward()
  37. turtle.forward()
  38. turtle.turnLeft()
  39. end
  40.  
  41. function DoorLayer()
  42. turtle.forward()
  43. turtle.turnLeft()
  44. for i=1, 4 do
  45. turtle.place()
  46. turtle.back()
  47. end
  48. turtle.back()
  49. for i=1, 4 do
  50. turtle.place()
  51. turtle.back()
  52. end
  53. function roundcorner()
  54. turtle.turnRight()
  55. turtle.forward()
  56. turtle.forward()
  57. turtle.turnLeft()
  58. turtle.forward()
  59. turtle.turnLeft()
  60. end
  61. roundcorner()
  62. for i=1, 6 do
  63. turtle.place()
  64. turtle.back()
  65. end
  66. roundcorner()
  67. for i=1, 9 do
  68. turtle.place()
  69. turtle.back()
  70. end
  71. roundcorner()
  72. for i=1, 6 do
  73. turtle.place()
  74. turtle.back()
  75. end
  76. turtle.turnRight()
  77. turtle.forward()
  78. turtle.forward()
  79. turtle.turnLeft()
  80. end
  81. function CeilingLayer()
  82. whichvar = 0
  83. function whichway()
  84. if whichvar == 1 then
  85. turtle.turnLeft()
  86. turtle.back()
  87. turtle.turnLeft()
  88. turtle.back()
  89. whichvar = 0
  90. else
  91. turtle.turnRight()
  92. turtle.back()
  93. turtle.turnRight()
  94. turtle.back()
  95. whichvar = 1
  96. end
  97. turtle.back()
  98. turtle.back()
  99. end
  100. turtle.forward()
  101. turtle.turnLeft()
  102. turtle.forward()
  103. turtle.turnLeft()
  104. turtle.back()
  105. turtle.back()
  106. for i=1, 9 do
  107. for i=1, 6 do
  108. turtle.place()
  109. turtle.back()
  110. end
  111. whichway()
  112. end
  113. for i=1, 5 do
  114. turtle.back()
  115. end
  116. turtle.turnRight()
  117. for i=1, 7 do
  118. turtle.back()
  119. end
  120. turtle.turnLeft()
  121. turtle.back()
  122. end
Advertisement
Add Comment
Please, Sign In to add comment