Jump to content




How to add up BundleCable outs on one side?


  • You cannot reply to this topic
4 replies to this topic

#1 SNWLeader

  • Members
  • 71 posts
  • LocationTampa Bay, Florida

Posted 28 September 2012 - 11:50 PM

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.

#2 NIN3

  • New Members
  • 57 posts
  • LocationEverywhere.

Posted 28 September 2012 - 11:53 PM

Its rather easy, atually.
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.

#3 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 28 September 2012 - 11:55 PM

You can use the colors.combine to add up, and colors.subtract to remove different colors. Use this as a helpful guide.

#4 BrolofTheViking

  • Members
  • 55 posts

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 MysticT

    Lua Wizard

  • Members
  • 1,597 posts

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:
rs.setBundledOutput("side", colors.combine(rs.getBundledOutput("side"), color))






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users