Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i = 5 --Number of times the turtle has dug
- u = 1 --Number of times the turtle has dug, in 5s
- --h = 1 --Now assigned by input
- s = 1 --Used to end program
- --t == 4
- b = 1
- rednet.open("right")
- print("Ready to accept")
- print("1.")
- message = rednet.receive()
- h = message
- print("2.")
- message = rednet.receive()
- d = message
- print("3.")
- message = rednet.receive()
- input = message
- if d == "Yes" then
- turtle.digDown()
- turtle.down()
- end
- if d == "No" then
- end
- repeat
- if turtle.detect() == true then
- turtle.dig()
- turtle.forward()
- end
- if turtle.detect() == false then
- turtle.forward()
- end
- i = i - 1
- if i < 2 then
- i = 5
- u = u + 1
- h = h - 1
- turtle.digDown()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.down()
- print(u)
- end
- if h == 0 then --Change once testing is complete
- u = u + 1
- if b == 1 then
- rednet.open("right")
- rednet.send(62,"Finished")
- repeat
- turtle.up()
- u = u - 1
- until u <= 1
- s = s + 1
- end
- end
- turtle.select(1)
- turtle.placeDown()
- if input == "Once" then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- end
- if input == "Twice+" then
- end
- until s > 1
Advertisement
Add Comment
Please, Sign In to add comment