I am used to having a single bundle one side for each program.
I need to know how to make the bundle outputs compile to one so that I can do stuff.
Lets say I have a bundled cable in the back. I want it to send blue out the back(which I know how to to.), but then I need to send red, I want to do that, but be able to still have blue, then I want green. I want to know how to do that.
someone please help.
How to add up BundleCable outs on one side?
Started by SNWLeader, Sep 28 2012 11:50 PM
4 replies to this topic
#1
Posted 28 September 2012 - 11:50 PM
#2
Posted 28 September 2012 - 11:53 PM
Its rather easy, atually.
I think you can replace the colors.stuff+colors.morestuff
with variables if you do please.
redstone.setBundledOutput("epic side goes here", colors.blue+colors.red)
I think you can replace the colors.stuff+colors.morestuff
with variables if you do please.
#4
Posted 29 September 2012 - 01:23 PM
If you use a variable to store the colors being used, like cranium said, you can then use the colors.combine to add a new color, without having to worry about knowing all of what is supposed to be outputted.
#5
Posted 29 September 2012 - 05:31 PM
You can also use rs.getBundledOutput to know wich colors are currently on, then add the new color with colors.combine and finally set the new output.
Like this:
Like this:
rs.setBundledOutput("side", colors.combine(rs.getBundledOutput("side"), color))
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











