Advertisement
rhn

reactor control 16

rhn
Jul 22nd, 2014
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.13 KB | None | 0 0
  1. local white = 0
  2. local orange = 0
  3. local magenta = 0
  4. local lightblue = 0
  5. local yellow = 0
  6. local lime = 0
  7. local grey = 0
  8. local lightgrey = 0
  9. local cyan = 0
  10. local purple = 0
  11. local blue = 0
  12. local brown = 0
  13. local green = 0
  14. local red = 0
  15. local black = 0
  16.  
  17. while true do
  18.  
  19.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.white)) == true then
  20.         white = 1
  21.     else
  22.         white = 0
  23.     end
  24.  
  25.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.orange)) == true then
  26.         orange = 2
  27.     else
  28.         orange = 0
  29.     end
  30.    
  31.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.magenta)) == true then
  32.         magenta = 4
  33.     else
  34.         magenta = 0
  35.     end
  36.  
  37.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.lightBlue)) == true then
  38.         lightblue = 8
  39.     else
  40.         lightblue = 0
  41.     end
  42.  
  43.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.yellow)) == true then
  44.         yellow = 16
  45.     else
  46.         yellow = 0
  47.     end
  48.  
  49.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.lime)) == true then
  50.         lime = 32
  51.     else
  52.         lime = 0
  53.     end
  54.  
  55.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.pink)) == true then
  56.         pink = 64
  57.     else
  58.         pink = 0
  59.     end
  60.  
  61.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.gray)) == true then
  62.         grey = 128
  63.     else
  64.         grey = 0
  65.     end
  66.  
  67.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.lightGray)) == true then
  68.         lightgrey = 256
  69.     else
  70.         lightgrey = 0
  71.     end
  72.  
  73.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.cyan)) == true then
  74.         cyan = 512
  75.     else
  76.         cyan = 0
  77.     end
  78.  
  79.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.purple)) == true then
  80.         purple = 1024
  81.     else
  82.         purple = 0
  83.     end
  84.  
  85.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.blue)) == true then
  86.         blue = 2048
  87.     else
  88.         blue = 0
  89.     end
  90.  
  91.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.brown)) == true then
  92.         brown = 4096
  93.     else
  94.         brown = 0
  95.     end
  96.  
  97.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.green)) == true then
  98.         green = 8192
  99.     else
  100.         green = 0
  101.     end
  102.  
  103.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.red)) == true then
  104.         red = 16384
  105.     else
  106.         red = 0
  107.     end
  108.  
  109.         if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.black)) == true then
  110.         black = 32768
  111.     else
  112.         black = 0
  113.     end
  114.  
  115.  
  116.  
  117.     redstone.setBundledOutput("right", white+orange+magenta+lightblue+yellow+lime+pink+grey+lightgrey+cyan+purple+blue+brown+green+red+black)
  118.     sleep(0.2)
  119.  
  120. end --while
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement