bldng1

Miner

Jul 23rd, 2021 (edited)
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. --Miner
  2. os.loadAPI("bldng/lib")
  3. lib.addtoworth("ore","debris")
  4. lib.addtojunk({"cobble","granit","andesit","gravel","bluestone","cobbled","tuff","rack"})
  5. while not (lib.shouldret() or (math.abs(lib.x)+math.abs(lib.y)+math.abs(lib.z))>100) do
  6. --check inventoryspace
  7. if lib.check() then
  8. lib.clearInv()
  9. end
  10. lib.rotate(lib.FORWARD)
  11. --check if there is already a tunnel
  12. if (turtle.detect() or turtle.detectUp()) then
  13. lib.move(0,1,0)
  14. lib.move(0,0,1)
  15. lib.move(0,-2,0)
  16. lib.move(0,0,-1)
  17. lib.move(0,1,0)
  18. lib.move(1,0,0)
  19. else
  20. print("Skipping Tile")
  21. lib.movef()
  22. end
  23. end
  24. lib.clearInv()
  25. lib.goback()
Advertisement
Add Comment
Please, Sign In to add comment