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

redstone Befehle

Started by Richter021, 22 April 2012 - 12:55 PM
Richter021 #1
Posted 22 April 2012 - 02:55 PM
Brauche Hilfe bei Redstone bzw. Redpower
ich will eine schaltung bauen sie mehrere inputs hat die in ein bundle sind und genauso auch output.
Wie macht man so was
1v2 #2
Posted 22 April 2012 - 03:34 PM
Try again in English.
Richter021 #3
Posted 22 April 2012 - 05:55 PM
Need help with Redstone and redpower I want to build a circuit to the multiple inputs into a bundle, and has also the same output. How to make something
Richter021 #4
Posted 22 April 2012 - 06:07 PM
her is a picure
OutlawBlue9 #5
Posted 23 April 2012 - 12:12 PM
I'm not entirely sure exactly of what you're asking but lets see if I think you're asking how to change the output from computercraft to a different color in the bundle? I'm not sure exactly of how much you know already or not so I'll start from the beginning.

Obviously to send a simple redstone output you use the command

redstone.setOutput("left", true) -- begins emitting redstone power to the left side of the computer
redstone.setOutput("right", false)  --end the emission of redstone power to the right side of the computer

To use bundles effectively you need to combine that code with the colors api and the commands colors.combine() and colors.subtract()

Example:


To Turn on:
c = colors.combine( c, colors.red)
rs.setBundledOutput("back", c )
To Turn Off:
c = colors.subtract( c, colors.red)
rs.setBundledOutput("back", c )

I hope this helps?