Advertisement
M2key1

Untitled

Dec 6th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 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 execute()
  32. turtle.back()
  33. turtle.back()
  34.  
  35. for i=1,4 do
  36. buildFancyStone()
  37. turtle.up()
  38. end
  39. for i=1,4 do
  40. turtle.down()
  41. end
  42.  
  43. turtle.back()
  44.  
  45. for j=1,3 do
  46. for i=1,4 do
  47. buildStoneWall()
  48. turtle.up()
  49. end
  50. for i=1,4 do
  51. turtle.down()
  52. end
  53. turtle.back()
  54. end
  55.  
  56. for i=1,4 do
  57. buildFancyStone()
  58. turtle.up()
  59. end
  60. for i=1,4 do
  61. turtle.down()
  62. end
  63. end
  64.  
  65. for i=1,l do
  66. execute()
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement