Advertisement
ecco7777

CC vertical strip miner

Feb 15th, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. yMax=80
  2. function goDown()
  3. b=''
  4. while b~='Unbreakable block detected' do
  5. turtle.down()
  6. a,b=turtle.digDown()
  7. end
  8. end
  9.  
  10. function goUp()
  11. for i=1,yMax do
  12. turtle.digUp()
  13. turtle.up()
  14. end
  15. end
  16.  
  17. function loadOut()
  18. if turtle.getItemCount()>0 then
  19. turtle.digUp()
  20. turtle.placeUp()
  21. for n=2,16 do
  22. turtle.select(n)
  23. turtle.dropUp()
  24. end
  25. turtle.select(1)
  26. end
  27. end
  28.  
  29. while true do
  30. goDown()
  31. turtle.dig()
  32. turtle.forward()
  33. goUp()
  34. loadOut()
  35. turtle.dig()
  36. turtle.forward()
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement