Advertisement
Niseg

spawner builder with build script alpha

Feb 21st, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.53 KB | None | 0 0
  1. local i
  2. function diagonalBack(num)
  3. for i=1,num do turtle.back() end
  4. turtle.turnLeft()
  5. for i=1,num do turtle.back() end
  6. turtle.turnRight()
  7. end
  8.  
  9. function diagonalFwd(num)
  10. for i=1,num do turtle.forward() end
  11. turtle.turnLeft()
  12. for i=1,num do turtle.forward() end
  13. turtle.turnRight()
  14. end
  15.  
  16. if not fs.exists("build") then shell.run("pastebin get ip1SPj7q build") end
  17. if not fs.exists("roof") then shell.run("pastebin get rBETJ6UQ roof") end
  18.  
  19. shell.run("build 3 2 20 5 ")
  20. turtle.back()
  21. shell.run("build 5 5 1 0 ")
  22.  
  23. diagonalFwd(2)
  24. turtle.placeDown()
  25. diagonalBack(2)
  26.  
  27. diagonalBack(1)
  28. shell.run("build 7 7 4 0 ")
  29.  
  30. diagonalFwd(2)
  31. turtle.down()
  32. shell.run("build 3 3 1 0 ")
  33.  
  34. diagonalBack(3)
  35. turtle.down()
  36. shell.run("build 9 9 1 0 ")
  37. diagonalBack(1)
  38. turtle.down()
  39. shell.run("build 11 11 1 0 ")
  40. diagonalBack(1)
  41. turtle.down()
  42.  
  43. shell.run("build 13 13 1 0 ")
  44. diagonalBack(1)
  45. turtle.forward()
  46. shell.run("build 13 2 7 5 ")
  47.  
  48. turtle.select(16)
  49. turtle.transferTo(1)
  50. shell.run("build 13 2 1 5 ")
  51. turtle.select(1)
  52. turtle.transferTo(16)
  53. turtle.back()
  54. diagonalFwd(1)
  55. for i=1,5 do turtle.down() end
  56. shell.run("build 13 13 1 0 ")
  57. diagonalFwd(2)
  58. turtle.down()
  59. shell.run("build 9 9 1 0 ")
  60. diagonalFwd(1)
  61. turtle.down()
  62. shell.run("build 7 7 1 0 ")
  63. diagonalFwd(1)
  64. turtle.down(1)
  65. shell.run("build 5 5 1 0 ")
  66.  
  67. diagonalFwd(2)
  68. turtle.placeDown()
  69. for i=1,2 do turtle.up() end
  70. diagonalBack(6)
  71. turtle.select(14)
  72. turtle.transferTo(1)
  73. turtle.select(15)
  74. turtle.transferTo(2)
  75. turtle.select(16)
  76. turtle.transferTo(3)
  77. shell.run("roof 13 13 2")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement