Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- side = ("'Enter Side Of Network'")
- lightSide = ("'Enter Side Of Bundled Cable'")
- rednet.open(side)
- while true do
- id, message = rednet.receive()
- print(message)
- if message == ("on white") then
- rs.setBundledOutput(lightSide, colors.combine(redstone.getBundledOutput(lightSide),1))
- print("light1")
- end
- if message == ("on orange") then
- rs.setBundledOutput(lightSide, colors.combine(redstone.getBundledOutput(lightSide),2))
- print("light2")
- end
- if message == ("on magenta") then
- rs.setBundledOutput(lightSide, colors.combine(redstone.getBundledOutput(lightSide),4))
- print("light3")
- end
- if message == ("on blue") then
- rs.setBundledOutput(lightSide, colors.combine(redstone.getBundledOutput(lightSide),8))
- print("light4")
- end
- if message == ("on yellow") then
- rs.setBundledOutput(lightSide, colors.combine(redstone.getBundledOutput(lightSide),16))
- print("light5")
- end
- if message == ("off white") then
- rs.setBundledOutput(lightSide, colors.subtract(redstone.getBundledOutput(lightSide),1))
- print("light1")
- end
- if message == ("off orange") then
- rs.setBundledOutput(lightSide, colors.subtract(redstone.getBundledOutput(lightSide),2))
- print("light2")
- end
- if message == ("off magenta") then
- rs.setBundledOutput(lightSide, colors.subtract(redstone.getBundledOutput(lightSide),4))
- print("light3")
- end
- if message == ("off blue") then
- rs.setBundledOutput(lightSide, colors.subtract(redstone.getBundledOutput(lightSide),8))
- print("light4")
- end
- if message == ("off yellow") then
- rs.setBundledOutput(lightSide, colors.subtract(redstone.getBundledOutput(lightSide),16))
- print("light5")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement