Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.refuel()
- print("Turtle Refueled")
- for i = 1, 500() #Value 500 can be changed depending on how many times needs to be looped.
- print("Moving D1")
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- print("Digging D1")
- turtle.dig()
- print("Moving D2")
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- print("Digging D2")
- turtle.dig()
- print("Moving D3")
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- print("Digging D3")
- turtle.dig()
- print("Moving M3")
- turtle.up()
- print("Digging M3")
- turtle.dig()
- print("Moving M2")
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- print("Digging M2")
- turtle.dig()
- print("Digging M1")
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- print("Digging M1")
- turtle.dig()
- print("Moving F1")
- turtle.up()
- print("Digging F1")
- turtle.dig()
- print("Moving F2")
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- print("Digging F2")
- turtle.dig()
- print("Moving F3")
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- print("Digging F3")
- turtle.dig()
- print("Resetting position")
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.down()
- turtle.down()
- turtle.forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement