SHOW:
|
|
- or go back to the newest paste.
| 1 | - | t = turtle |
| 1 | + | |
| 2 | local function scanAirWaves() | |
| 3 | - | rednet.open("right")
|
| 3 | + | rednet.open("top")
|
| 4 | id, message = rednet.receive() | |
| 5 | print(message) | |
| 6 | ||
| 7 | - | if message == "spawn 1 on" then |
| 7 | + | if message == "spawn 6 on" then |
| 8 | - | redstone.setAnalogOutput("bottom", 15)
|
| 8 | + | rednet.broadcast(message) |
| 9 | - | end |
| 9 | + | |
| 10 | - | if message == "spawn 1 off" then |
| 10 | + | |
| 11 | - | redstone.setAnalogOutput("bottom", 0)
|
| 11 | + | |
| 12 | - | end |
| 12 | + | |
| 13 | end |