Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- while 1 do
- local senderId, message, protocol = rednet.receive("Weather")
- if (message == "autoDayOn") then
- print(message)
- redstone.setOutput("right", false)
- elseif (message == "autoDayOff") then
- print(message)
- redstone.setOutput("right", true)
- elseif (message == "autoWeatherOn") then
- print(message)
- redstone.setOutput("left", false)
- elseif (message == "autoWeatherOff") then
- print(message)
- redstone.setOutput("left", true)
- end
- end
RAW Paste Data