SHOW:
|
|
- or go back to the newest paste.
| 1 | - | rednet.open("right")
|
| 1 | + | while true do |
| 2 | - | id, message = rednet.receive() |
| 2 | + | if rs.getInput("left") then
|
| 3 | - | |
| 3 | + | rednet.open("right")
|
| 4 | - | |
| 4 | + | rednet.broadcast("111")
|
| 5 | - | if message == "111" then |
| 5 | + | sleep(1) |
| 6 | - | turtle.forward() |
| 6 | + | rednet.broadcast("000")
|
| 7 | - | turtle.turnRight() |
| 7 | + | |
| 8 | - | turtle.turnLeft() |
| 8 | + | sleep(1) |
| 9 | - | turtle.back() |
| 9 | + |