Posted 09 January 2013 - 03:47 PM
Hi guys this is my first tutorial and i will try to explain the redstone.setBundledOutput() function.
First let look at the order of the cables
Understanding…
This are the cables numbers, but how do i gonna turn on/off this cables?
Simple using:
But how i gonna turn on/off this cabes?
Using their numbers!
If i use num as 2 power the number of the cable. W
Why?
If you use num as 1 it will turn on the white cable, if you use 2 you will turn the orange cable, but if you use num as 3 you will turn on the white and orange cables.
OMG I want to turn on just one cable!
Easy just get the cable number and use as exponent of 2
WTF??
To turn the cable witch have the number 5 just use:
But now i want the bundle cable 5 and the 11!
Simple! Just add 2^11
Now i want all cables off!
Simple just use num as 0
OMG that is too hard!
Ok just use colors.thecolor as the num!
Thank you guys, i hope have helped you! Any questions just reply!
Meni.
First let look at the order of the cables
Understanding…
This are the cables numbers, but how do i gonna turn on/off this cables?
Simple using:
redstone.setBundledOutput(side,num)
Ok! The side is a string that is where the bundled cable is. They are "left" ,"right" ,"top" ,"bottom" ,"back" ,"front" .But how i gonna turn on/off this cabes?
Using their numbers!
If i use num as 2 power the number of the cable. W
Why?
If you use num as 1 it will turn on the white cable, if you use 2 you will turn the orange cable, but if you use num as 3 you will turn on the white and orange cables.
OMG I want to turn on just one cable!
Easy just get the cable number and use as exponent of 2
WTF??
To turn the cable witch have the number 5 just use:
redstone.setBundleOutput(side,2^5)
But now i want the bundle cable 5 and the 11!
Simple! Just add 2^11
redstone.setBundleOutput(side,2^5+2^11)
And the result isNow i want all cables off!
Simple just use num as 0
redstone.setBundledOutput(side,0)
OMG that is too hard!
Ok just use colors.thecolor as the num!
redstone.setBundledOutput(side,colors.white)
--Is the same think as
redstone.setBundledOutput(side,2)
Thank you guys, i hope have helped you! Any questions just reply!
Meni.