Advertisement
M2key1

Untitled

Dec 6th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. local l = ...
  2.  
  3. function buildFancyStone()
  4. data = turtle.getItemDetail()
  5. if data.name ~= "TConstruct:decoration.multibrickfancy" then
  6. for i=1,16 do
  7. data = turtle.getItemDetail(i)
  8. if data.name == "TConstruct:decoration.multibrickfancy" then
  9. turtle.select(i)
  10. break
  11. end
  12. end
  13. end
  14. turtle.place()
  15. end
  16.  
  17. function buildStoneWall()
  18. data = turtle.getItemDetail()
  19. if data.name ~= "chisel:stonebricksmooth" then
  20. for i=1,16 do
  21. data = turtle.getItemDetail(i)
  22. if data.name == "chisel:stonebricksmooth" then
  23. turtle.select(i)
  24. break
  25. end
  26. end
  27. end
  28. turtle.place()
  29. end
  30.  
  31. function buildCobblestone()
  32. data = turtle.getItemDetail()
  33. if data.name ~= "minecraft:cobblestone" then
  34. for i=1,16 do
  35. data = turtle.getItemDetail(i)
  36. if data.name == "minecraft:cobblestone" then
  37. turtle.select(i)
  38. break
  39. end
  40. end
  41. end
  42. turtle.place()
  43. end
  44.  
  45. function buildGlass()
  46. data = turtle.getItemDetail()
  47. if data.name ~= "chisel:glass" then
  48. for i=1,16 do
  49. data = turtle.getItemDetail(i)
  50. if data.name == "chisel:glass" then
  51. turtle.select(i)
  52. break
  53. end
  54. end
  55. end
  56. turtle.place()
  57. end
  58.  
  59. function right(val)
  60. turtle.turnRight()
  61. for i=1,val do
  62. turtle.forward()
  63. end
  64. turtle.turnLeft()
  65. end
  66.  
  67. function left(val)
  68. turtle.turnLeft()
  69. for i=1,val do
  70. turtle.forward()
  71. end
  72. turtle.turnRight()
  73. end
  74.  
  75. function execute()
  76. turtle.back()
  77.  
  78. for i=1,4 do
  79. buildGlass()
  80. turtle.up()
  81. end
  82. for i=1,2 do
  83. right(1)
  84. buildGlass()
  85. end
  86. turtle.up()
  87. for i=1,3 do
  88. right(1)
  89. buildGlass()
  90. end
  91.  
  92. right(1)
  93. turtle.down()
  94.  
  95. for i=1,2 do
  96. buildGlass()
  97. right(1)
  98. end
  99. for i=1,4 do
  100. turtle.down()
  101. buildGlass()
  102. end
  103. left(8)
  104. end
  105.  
  106. for i=1,l do
  107. execute()
  108. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement