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

Little function to make handling bundled cables more convinient

Started by Henrik, 14 July 2017 - 04:31 PM
Henrik #1
Posted 14 July 2017 - 06:31 PM
Hello fellows,
I found redpower's/bluepower's bundled cables a bit awkward to use, because "redstone.setBundledOutput()" only enables given colours on the given side and disables the others. So I made 2 simple functions that make handling bundled cables a bit easier.

--Sets "nColors" at "sSide" to "bState" without modifying other colors
setBundledOutput(sSide, nColors, bState)

--Returns the current state of a specific cable at "sSide" or all active colors if "nColor" is nil
getBundledOutput(sSide, nColor)


Code:
http://actofgod.spdn...0/f/0097dbb29a/

I don't want any credit for this, just copy it so you don't have to create these functions yourself:)
CLNinja #2
Posted 15 July 2017 - 02:16 PM
Wtf site are you hosting on…
Henrik #3
Posted 09 August 2017 - 12:58 PM
Wtf site are you hosting on…
The site is hosted on a friend's server, sorry for the address…
hbomb79 #4
Posted 10 August 2017 - 10:48 PM
Why would you not upload it to pastebin? It's much better in every way I can think of…