Jump to content

Little function to make handling bundled cables more convinient

utility api

3 replies to this topic

#1 Henrik

  • Members
  • 3 posts

Posted 14 July 2017 - 05: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)


I don't want any credit for this, just copy it so you don't have to create these functions yourself:)

#2 CLNinja

  • Members
  • 191 posts

Posted 15 July 2017 - 01:16 PM

Wtf site are you hosting on...

#3 Henrik

  • Members
  • 3 posts

Posted 09 August 2017 - 11:58 AM

View PostCLNinja, on 15 July 2017 - 01:16 PM, said:

Wtf site are you hosting on...
The site is hosted on a friend's server, sorry for the address...

#4 hbomb79

  • Members
  • 352 posts
  • LocationOrewa, New Zealand

Posted 10 August 2017 - 09:48 PM

Why would you not upload it to pastebin? It's much better in every way I can think of...

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users