Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- rednet.send(96, "ReadyT1")
- print("Ready")
- Marche = "True"*
- CCoupe = 0
- sleep(1)
- i = 1
- while true do
- term.clear()
- term.setCursorPos(1,1)
- i = 1
- print("Attente de l'info")
- rednet.send(96, "OK?")
- local senderId, message, protocol = rednet.receive(1)
- if message == "YES" then
- while
- while i <= 2 do
- turtle.select(1)
- if turtle.compare(formard) == true then
- turtle.down()
- turtle.turnLeft()
- turtle.turnLeft()
- else
- turtle.select(2)
- if turtle.compare(formard) == true then
- turtle.up()
- turtle.turnRight()
- turtle.select(16)
- turtle.drop()
- turtle.turnRight()
- i = 3
- else
- turtle.select(16)
- turtle.dig(forward)
- turtle.forward()
- end
- end
- end
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Protocol DODO Durant 250")
- sleep(250)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement