Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- intDigDistance = tonumber(args[1])
- function dig()
- while(turtle.detect() == true)
- do
- turtle.dig()
- end
- end
- function digUp()
- while(turtle.detectUp() == true)
- do
- turtle.digUp()
- end
- end
- function digDown()
- while(turtle.detectDown() == true)
- do
- turtle.digDown()
- end
- end
- function mine()
- dig()
- turtle.turnLeft()
- dig()
- turtle.turnRight()
- turtle.turnRight()
- dig()
- turtle.turnLeft()
- end
- x = 0
- while(x < intDigDistance)
- do
- mine()
- turtle.up()
- mine()
- turtle.down()
- turtle.forward()
- x = x + 1
- end
Advertisement
Add Comment
Please, Sign In to add comment