Advertisement
Guest User

ForceMining

a guest
Jan 18th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 0 0
  1. -- put at first Slot COAL!
  2. -- put at Slot 16 Chests!
  3. print "Mining started until hit Bedrock"
  4. while (not(turtle.detectDown) or turtle.digDown()) do
  5.  
  6. -- When Inventory full --> chest with all items
  7. turtle.select(15)
  8. if turtle.getItemCount() > 1 then
  9. turtle.turnRight()
  10. turtle.dig()
  11. turtle.up()
  12. turtle.dig()
  13. turtle.down()
  14. turtle.select(16)
  15. turtle.place()
  16. -- Droping items into chest !DONT CHANGE FOR LOOP!
  17. for i=15,2,-1 do
  18. turtle.select(i)
  19. turtle.drop()
  20. end
  21. turtle.turnLeft()
  22. end
  23. turtle.select(2)
  24. -- i defines how big the whole will be: i=5 --> 5x5
  25. for i=10,1,-1 do
  26.  
  27. for i=9,1,-1 do
  28. turtle.dig()
  29. turtle.forward()
  30. end
  31.  
  32. for i=9,1,-1 do
  33. turtle.back()
  34. end
  35. if not(i==1) then
  36. turtle.turnLeft()
  37. turtle.dig()
  38. turtle.forward()
  39. turtle.turnRight()
  40. end
  41. end
  42. turtle.turnRight()
  43. for i=9,1,-1 do
  44. turtle.forward()
  45. end
  46. turtle.turnLeft()
  47. turtle.digDown()
  48. turtle.down()
  49.  
  50. end
  51.  
  52. print "MINING COMPLETE!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement