Difference between revisions of "Redstone.getBundledOutput"
Line 27: | Line 27: | ||
<p>1 goes to 0</p> | <p>1 goes to 0</p> | ||
<p>0 goes to 1</p> | <p>0 goes to 1</p> | ||
+ | <p>----</p> | ||
+ | <p>----</p> | ||
+ | <p>----</p> | ||
+ | <p>Page created by [http://acecheesecr14.dlinkddns.com/ acecheesecr14]</p> |
Revision as of 00:49, 29 June 2012
----------------------------------------------------------------------------
if(rs.getBundledOutput("back") > "0") then
rs.setBundledOutput("back", 0)
else
rs.setBundledOutput("back", colors.red+colors.yellow)
end
----------------------------------------------------------------------------
this code will either power everything off or
everything(dependant on the colours you use)
on
----------------------------------------------------------------------------
if(rs.getBundledOutput("back") > "0") then
----------------------------------------------------------------------------
this part identifies ant bundled outputs that are on
using the greater than symbol
" > "
after they are identified if they are on or not
they are changed to the opposite state
1 = on
0 = off
1 goes to 0
0 goes to 1
----
----
----
Page created by acecheesecr14