Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- rednet.host("Weather","SetTime")
- while 1 do
- local senderId, message, protocol = rednet.receive("Weather")
- if (message == "setDay") then
- redstone.setOutput("right", true)
- sleep(1)
- redstone.setOutput("right", false)
- elseif (message == "setNight") then
- redstone.setOutput("left", true)
- sleep(1)
- redstone.setOutput("left", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement