First let look at the order of the cables
This are the cables numbers, but how do i gonna turn on/off this cables?
redstone.setBundledOutput(side,num)Ok! The side is a string that is where the bundled cable is. They are "left" ,"right" ,"top" ,"bottom" ,"back" ,"front" .
But how i gonna turn on/off this cabes?
Using their numbers!
If i use num as 2 power the number of the cable. W
If you use num as 1 it will turn on the white cable, if you use 2 you will turn the orange cable, but if you use num as 3 you will turn on the white and orange cables.
OMG I want to turn on just one cable!
Easy just get the cable number and use as exponent of 2
To turn the cable witch have the number 5 just use:
But now i want the bundle cable 5 and the 11!
Simple! Just add 2^11
redstone.setBundleOutput(side,2^5+2^11)And the result is
Now i want all cables off!
Simple just use num as 0
OMG that is too hard!
Ok just use colors.thecolor as the num!
redstone.setBundledOutput(side,colors.white) --Is the same think as redstone.setBundledOutput(side,2)
Thank you guys, i hope have helped you! Any questions just reply!