Advertisement
NicksChannel

Unsafe Tunnel

Dec 18th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 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.digDown()
  14. torch = torch + 1
  15. turtle.select(1)
  16. if torch > 7 then
  17. turtle.turnRight()
  18. turtle.turnRight()
  19. turtle.down()
  20. turtle.place()
  21. turtle.up()
  22. turtle.turnLeft()
  23. turtle.turnLeft()
  24. torch = 0
  25. end
  26. if turtle.getItemCount(16)>0 then
  27. turtle.down()
  28. turtle.digDown()
  29. turtle.select(2)
  30. turtle.placeDown()
  31. for i=5,16 do
  32. turtle.select(i)
  33. turtle.dropDown()
  34. end
  35. turtle.select(1)
  36. turtle.up()
  37. end
  38. if turtle.getItemCount(1)<1 then
  39. exit()
  40. end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement