Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Miner
- os.loadAPI("bldng/lib")
- lib.addtoworth("ore","debris")
- lib.addtojunk({"cobble","granit","andesit","gravel","bluestone","cobbled","tuff","rack"})
- while not (lib.shouldret() or (math.abs(lib.x)+math.abs(lib.y)+math.abs(lib.z))>100) do
- --check inventoryspace
- if lib.check() then
- lib.clearInv()
- end
- lib.rotate(lib.FORWARD)
- --check if there is already a tunnel
- if (turtle.detect() or turtle.detectUp()) then
- lib.move(0,1,0)
- lib.move(0,0,1)
- lib.move(0,-2,0)
- lib.move(0,0,-1)
- lib.move(0,1,0)
- lib.move(1,0,0)
- else
- print("Skipping Tile")
- lib.movef()
- end
- end
- lib.clearInv()
- lib.goback()
Advertisement
Add Comment
Please, Sign In to add comment