Advertisement
herobrinethree

stillminerplus

Feb 11th, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. lastempty = function()
  2. turtle.digUp()
  3. turtle.select(2)
  4. turtle.placeUp()
  5. for i = 3, 16, 1
  6. do
  7. turtle.select(i)
  8. turtle.dropUp(64)
  9. end
  10. turtle.select(2)
  11. turtle.digUp()
  12. turtle.select(1)
  13. end
  14. empty = function()
  15. if turtle.getItemCount(15) >= 1 then
  16. turtle.digUp()
  17. turtle.select(2)
  18. turtle.placeUp()
  19. for i = 3, 16, 1
  20. do
  21. turtle.select(i)
  22. turtle.dropUp(64)
  23. end
  24. turtle.select(2)
  25. turtle.digUp()
  26. turtle.select(1)
  27. end
  28. end
  29.  
  30.  
  31. dig = function(amount)
  32. for i = 0, amount, 1
  33. do
  34. empty()
  35. turtle.dig()
  36. end
  37. lastempty()
  38. end
  39. term.write("Select Amount of Blocks Mined: ")
  40. local Amount = read()
  41. dig(Amount)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement