Wiiplay123

House-O-Matic

Aug 5th, 2013
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.46 KB | None | 0 0
  1. print("Building house for "..player.."...")
  2. turtle.select(1)
  3. local slot = 1
  4. for u = 1, 4 do
  5. turtle.up()
  6. for i = 1, 4 do
  7. for o = 1, 12 do
  8. if (u > 2 or i > 1 or o ~= 6) then
  9. if (turtle.getItemCount(slot) == 0) then
  10. slot = slot + 1
  11. turtle.select(slot)
  12. end
  13. turtle.placeDown()
  14. end
  15. if (u == 3 and i == 1 and o == 6) then
  16. turtle.turnRight()
  17. turtle.back()
  18. turtle.down()
  19. turtle.back()
  20. turtle.select(10)
  21. turtle.place(player.."'s\nHouse")
  22. turtle.down()
  23. turtle.forward()
  24. turtle.down()
  25. turtle.select(9)
  26. turtle.place()
  27. turtle.back()
  28. turtle.up()
  29. turtle.up()
  30. turtle.up()
  31. turtle.forward()
  32. turtle.forward()
  33. turtle.turnLeft()
  34. turtle.select(slot)
  35. end
  36. if (o ~= 12) then
  37. turtle.forward()
  38. end
  39. end
  40. turtle.turnRight()
  41. end
  42. end
  43. turtle.up()
  44. turtle.select(5)
  45. local slot = 5
  46. local a = false
  47. for i = 1, 12 do
  48. for o = 1, 12 do
  49. if (turtle.getItemCount(slot) == 0) then
  50. slot = slot + 1
  51. turtle.select(slot)
  52. end
  53. if (i == 6 and o == 6) then
  54. turtle.down()
  55. turtle.down()
  56. turtle.down()
  57. turtle.down()
  58. turtle.select(11)
  59. turtle.placeDown()
  60. for i = 12, 16 do
  61. turtle.select(i)
  62. turtle.dropDown()
  63. end
  64. turtle.up()
  65. turtle.up()
  66. turtle.up()
  67. turtle.up()
  68. turtle.select(slot)
  69. end
  70. turtle.placeDown()
  71. if (o ~= 12) then
  72. turtle.forward()
  73. end
  74. end
  75. if a == false then
  76. turtle.turnRight()
  77. else
  78. turtle.turnLeft()
  79. end
  80. turtle.forward()
  81. if a == false then
  82. turtle.turnRight()
  83. else
  84. turtle.turnLeft()
  85. end
  86. a = not a
  87. end
  88. turtle.forward()
  89. repeat
  90. until turtle.down() == false
Advertisement
Add Comment
Please, Sign In to add comment