Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- rs.setOutput("top", true)
- function main()
- id, message = rednet.receive()
- if message == "open" then
- rs.setOutput("top", false)
- print("Open")
- end
- if message == "close" then
- rs.setOutput("top", true)
- print("Close")
- end
- end
- while true do
- main()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement