Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function DigWidth(width)
- for i = 1, width do
- turtle.dig()
- turtle.drop()
- if turtle.forward() then
- print("Succesful move")
- else
- print("Move obstructed, digging again")
- turtle.dig()
- turtle.drop()
- end
- turtle.digUp()
- turtle.drop()
- turtle.digDown()
- turtle.drop()
- end
- turtle.turnLeft()
- turtle.dig()
- turtle.drop()
- if turtle.forward() then
- print("Succesful move")
- else
- print("Move obstructed, digging again")
- turtle.dig()
- turtle.drop()
- end
- turtle.digUp()
- turtle.drop()
- turtle.digDown()
- turtle.drop()
- turtle.turnLeft()
- for i = 1, width do
- turtle.dig()
- turtle.drop()
- if turtle.forward() then
- print("Succesful move")
- else
- print("Move obstructed, digging again")
- turtle.dig()
- turtle.drop()
- end
- turtle.digUp()
- turtle.drop()
- turtle.digDown()
- turtle.drop()
- end
- turtle.turnRight()
- turtle.dig()
- turtle.drop()
- if turtle.forward() then
- print("Succesful move")
- else
- print("Move obstructed, digging again")
- turtle.dig()
- turtle.drop()
- end
- turtle.digUp()
- turtle.drop()
- turtle.digDown()
- turtle.drop()
- turtle.turnRight()
- end
- function DigTime(distance)
- turtle.dig()
- turtle.drop()
- if turtle.forward() then
- print("Succesful move")
- else
- print("Move obstructed, digging again")
- turtle.dig()
- turtle.drop()
- end
- turtle.digUp()
- turtle.drop()
- turtle.digDown()
- turtle.drop()
- turtle.turnRight()
- for i = 1, distance do
- DigWidth(50)
- end
- end
- DigTime(40)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement