Advertisement
Draco18s

Enderman Farm Center

Jan 4th, 2013
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. -- 26 ladders in slot 13
  2. -- 64 ladders in slot 14
  3. -- 30 solid blocks in slot 15
  4. -- 30 pistons in slot 16
  5.  
  6. local curSlot = 16
  7. turtle.select(16)
  8.  
  9. function checkFuel(min)
  10. if turtle.getFuelLevel() < min then
  11. turtle.select(1)
  12. turtle.refuel(1)
  13. turtle.select(curSlot)
  14. end
  15. end
  16.  
  17. function getMaterial()
  18. if turtle.getItemCount(curSlot) == 0 then
  19. for s=16,1,-1 do
  20. if turtle.getItemCount(s) > 0 then
  21. break
  22. end
  23. end
  24. turtle.select(s)
  25. curSlot = s
  26. end
  27. end
  28.  
  29. function platform()
  30. checkFuel(50)
  31. getMaterial()
  32. turtle.placeDown()
  33. for i=1,14,1 do
  34. turtle.forward()
  35. getMaterial()
  36. turtle.placeDown()
  37. end
  38. turtle.turnLeft()
  39. turtle.forward()
  40. getMaterial()
  41. turtle.placeDown()
  42. for i=1,14,1 do
  43. turtle.forward()
  44. getMaterial()
  45. turtle.placeDown()
  46. end
  47. turtle.turnLeft()
  48. turtle.forward()
  49. turtle.turnLeft()
  50. end
  51.  
  52. function manyPlatforms()
  53. platform()
  54. turtle.up()
  55. platform()
  56. for i=1,46,1 do
  57. turtle.down()
  58. end
  59. platform()
  60. turtle.up()
  61. platform()
  62. turtle.up()
  63. platform()
  64. for i=1,7,1 do
  65. turtle.forward()
  66. end
  67. turtle.turnRight()
  68. turtle.forward()
  69. turtle.forward()
  70. for i=1,46,1 do
  71. turtle.down()
  72. end
  73. end
  74.  
  75. manyPlatforms()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement