Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- distY = 0
- torch = 0
- function digForward()
- while turtle.detect() == true do
- turtle.dig()
- turtle.attack()
- end
- turtle.forward()
- end
- function dig()
- while turtle.detect() == true do
- turtle.dig()
- turtle.attack()
- end
- turtle.forward()
- while turtle.detectUp() == true do
- turtle.digUp()
- turtle.attackUp()
- end
- while turtle.detectDown() == true do
- turtle.digDown()
- turtle.attackDown()
- end
- end
- function digRow2()
- while true do
- invCheck()
- turtle.turnLeft()
- if torch == 3 then
- torch = 0
- dig()
- dig()
- dig()
- turtle.placeDown()
- dig()
- dig()
- else
- for i=1,5 do
- dig()
- end
- end
- turtle.turnRight()
- dig()
- turtle.turnRight()
- for i=1,5 do
- dig()
- end
- turtle.turnLeft()
- dig()
- drop()
- distY = distY + 2
- torch = torch + 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement