SHOW:
|
|
- or go back to the newest paste.
1 | rednet.open("right") | |
2 | - | rednet.host("Weather","SetTime") |
2 | + | |
3 | local senderId, message, protocol = rednet.receive("Weather") | |
4 | if (message == "autoDayOn") then | |
5 | - | if (message == "setDay") then |
5 | + | print(message) |
6 | redstone.setOutput("right", false) | |
7 | - | sleep(1) |
7 | + | elseif (message == "autoDayOff") then |
8 | print(message) | |
9 | - | elseif (message == "setNight") then |
9 | + | |
10 | - | redstone.setOutput("left", true) |
10 | + | elseif (message == "autoWeatherOn") then |
11 | - | sleep(1) |
11 | + | print(message) |
12 | - | redstone.setOutput("left", false) |
12 | + | redstone.setOutput("left", false) |
13 | elseif (message == "autoWeatherOff") then | |
14 | print(message) | |
15 | redstone.setOutput("left", true) | |
16 | end | |
17 | end |