Advertisement
NicksChannel

SomeSafeTunnel3

Dec 19th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. turtle.select(5)
  2. turtle.refuel(64)
  3. turtle.select(1)
  4. local torch=0
  5. while true do
  6. turtle.dig()
  7. turtle.select(4)
  8. while turtle.compare() do
  9. turtle.dig()
  10. end
  11. turtle.forward()
  12. turtle.digUp()
  13. turtle.digUp()
  14. while turtle.compareUp() do
  15. turtle.digUp()
  16. turtle.digUp()
  17. end
  18. turtle.select(3)
  19. turtle.up()
  20. turtle.placeUp()
  21. turtle.down()
  22. turtle.digDown()
  23. turtle.down()
  24. turtle.placeDown()
  25. turtle.up()
  26. turtle.select(1)
  27. torch = torch + 1
  28. if torch > 21 then
  29. turtle.turnRight()
  30. turtle.turnRight()
  31. turtle.down()
  32. turtle.place()
  33. turtle.up()
  34. turtle.turnLeft()
  35. turtle.turnLeft()
  36. torch = 0
  37. end
  38. if turtle.getItemCount(16)>0 then
  39. turtle.down()
  40. turtle.digDown()
  41. turtle.select(2)
  42. turtle.placeDown()
  43. for i=5,16 do
  44. turtle.select(i)
  45. turtle.dropDown()
  46. end
  47. turtle.select(1)
  48. turtle.up()
  49. end
  50. if turtle.getItemCount(1)<1 then
  51. exit()
  52. end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement