SHOW:
|
|
- or go back to the newest paste.
| 1 | rednet.open("right")
| |
| 2 | while true do | |
| 3 | event, id, text = os.pullEvent() | |
| 4 | if event == "rednet_message" then | |
| 5 | print(text) | |
| 6 | if text=="opeen" then | |
| 7 | - | if text=="1" then |
| 7 | + | redstone.setOutput("back", true)
|
| 8 | - | turtle.drop(1) |
| 8 | + | sleep(3) |
| 9 | - | elseif text=="2" then |
| 9 | + | redstone.setOutput("back", false)
|
| 10 | - | turtle.drop(2) |
| 10 | + | |
| 11 | - | elseif text=="3" then |
| 11 | + | os.reboot() |
| 12 | - | turtle.drop(3) |
| 12 | + | |
| 13 | - | elseif text=="4" then |
| 13 | + |