Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- turtle digging programm
- ]]--
- --clear page
- term.clear()
- --main loop
- for i=1, 2 do
- --set inv slot to 1
- turtle.select(1)
- --check for full inv.
- while turtle.getItemCount(9) == 0 do
- --check for blocks to mine
- if turtle.detect()== true then
- turtle.dig()
- end
- if turtle.detectDown() == true then
- turtle.digDown()
- end
- if turtle.detectUp() == true then
- turtle.digUp()
- end
- turtle.forward()
- end
- --drop inventory
- for j=1 , 10 do
- turtle.select(1)
- turtle.drop()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment