Advertisement
spikeck2

House

Jul 29th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. local sslot = 2
  2. turtle.selectslot(sslot)
  3. sslot = (sslot%15)+2
  4. turtle.select(sslot)
  5. turtle.getItemCount(sslot)
  6.  
  7. while turtle.getItemCount(slot) < 1 do
  8. sslot = (sslot%15)+2
  9. end
  10. turtle.select(sslot)
  11. end
  12.  
  13. function side()
  14.  
  15. turtle.turnRight()
  16.  
  17. wall()
  18. wall()
  19. wall()
  20. window()
  21. window()
  22. window()
  23. wall()
  24. wall()
  25. wall()
  26. window()
  27. window()
  28. window()
  29. wall()
  30. wall()
  31. wall()
  32. window()
  33. window()
  34. wall()
  35. wall()
  36. wall()
  37. window()
  38. window()
  39. window()
  40. wall()
  41. wall()
  42. wall()
  43. window()
  44. window()
  45. window()
  46. wall()
  47. wall()
  48.  
  49. end
  50.  
  51. ------------------------------------
  52. function wall()
  53.  
  54. turtle.placeDown()
  55. turtle.up()
  56. turtle.placeDown()
  57. turtle.up()
  58. turtle.placeDown()
  59. turtle.up()
  60. turtle.placeDown()
  61. turtle.up()
  62. turtle.placeDown()
  63. turtle.forward()
  64. turtle.down()
  65. turtle.down()
  66. turtle.down()
  67. turtle.down()
  68.  
  69. end
  70.  
  71. ----------------------------------------
  72. function window()
  73.  
  74. turtle.placeDown()
  75. turtle.up()
  76. turtle.up()
  77. turtle.up()
  78. turtle.placeDown()
  79. turtle.up()
  80. turtle.placeDown()
  81. turtle.forward()
  82. turtle.down()
  83. turtle.down()
  84. turtle.down()
  85. turtle.down()
  86.  
  87. end
  88.  
  89. --------------------------------------------
  90. turtle.refuel(5)
  91.  
  92. turtle.select(2)
  93.  
  94. turtle.up()
  95.  
  96. side()
  97. side()
  98. side()
  99. side()
  100.  
  101. turtle.up()
  102. turtle.up()
  103. turtle.up()
  104. turtle.up()
  105. turtle.up()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement