This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Th3RadMan's profile picture

How Do You Know Color Numbers For Rs Rednet?

Started by Th3RadMan, 22 September 2013 - 06:56 PM
Th3RadMan #1
Posted 22 September 2013 - 08:56 PM
im making a semi complex system (to me) and it uses rednet, how do i know what number goes to what?

Thanks
theoriginalbit #2
Posted 22 September 2013 - 09:08 PM
The coloured bands on the cable and the connection face is the colour on the rednet end. So colors.red will connect to the red cable.
Th3RadMan #3
Posted 22 September 2013 - 09:14 PM
ok, thanks, also, how do you set multiple sides to true/false with 1 command?
theoriginalbit #4
Posted 22 September 2013 - 09:19 PM
you can't.
Th3RadMan #5
Posted 22 September 2013 - 09:33 PM
ok, i used the rs.setBundledOutput command but it needs a number…
theoriginalbit #6
Posted 22 September 2013 - 10:08 PM
You have to supply it a colour

rs.setBundledOutput([side], [number/color])
Edited on 22 September 2013 - 08:09 PM
Th3RadMan #7
Posted 23 September 2013 - 12:00 AM
ok… you gotta help me here, im not too experienced. do i insert the binary code or what for the color slot
Lyqyd #8
Posted 23 September 2013 - 12:03 AM
You can use colors.combine with the color aliases:


rs.setBundledOutput("left", colors.combine(colors.blue, colors.red))
Th3RadMan #9
Posted 23 September 2013 - 12:07 AM
You can use colors.combine with the color aliases:


rs.setBundledOutput("left", colors.combine(colors.blue, colors.red))
thank you very much