SHOW:
|
|
- or go back to the newest paste.
| 1 | local modem = peripheral.find("modem")
| |
| 2 | rednet.open("top")
| |
| 3 | ||
| 4 | - | local id, message |
| 4 | + | |
| 5 | - | repeat |
| 5 | + | local id, message |
| 6 | - | id, message = rednet.receive() |
| 6 | + | id, message = rednet.receive() |
| 7 | - | until id == 3 |
| 7 | + | if message == "N4" then |
| 8 | - | redstone.setOutput("back", true)
|
| 8 | + | redstone.setOutput("back", true)
|
| 9 | - | sleep(0.4) |
| 9 | + | sleep(0.4) |
| 10 | - | redstone.setOutput("back", false)
|
| 10 | + | redstone.setOutput("back", false)
|
| 11 | end | |
| 12 | end | |
| 13 |