Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("front")
- rednet.open("bottom")
- while true do
- sender, message, distance = rednet.receive(1)
- if message == "lightOn" then
- rs.setOutput('top', true)
- elseif message == "lightOff" then
- rs.setOutput('top', false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement