Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Control
- tabID = multishell.getCurrent()
- multishell.setTitle(tabID,"Control")
- local reactor
- reactor = peripheral.wrap("top")
- while true do
- id, message = rednet.receive()
- if id == 411 then
- if message == "ON" then
- reactor.setActive(true)
- shell.openTab("Auto")
- rs.setBundledOutput("bottom", colors.combine(rs.getBundledOutput("bottom"), colors.lime))
- rs.setBundledOutput("bottom" ,colors.subtract(rs.getBundledOutput("bottom"), colors.red))
- end
- if message == "OFF" then
- reactor.setActive(false)
- shell.exit()
- rs.setBundledOutput("bottom", colors.combine(rs.getBundledOutput("bottom"), colors.red))
- rs.setBundledOutput("bottom" ,colors.subtract(rs.getBundledOutput("bottom"), colors.lime))
- end
- end
- end
Add Comment
Please, Sign In to add comment