Stravides

redstone

Apr 26th, 2014
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.51 KB | None | 0 0
  1. -- Updater Information **IGNORE**
  2. apiVersion = "1.2"
  3.  
  4. function version()
  5.   return apiVersion
  6. end
  7.  
  8. function setwire (side, nColors, value)
  9.    current=redstone.getBundledOutput(side)
  10.         if onoff then
  11.             rs.setBundledOutput(side, colors.subtract(current, nColors))
  12.         else
  13.             rs.setBundledOutput(side, colors.combine(current, nColors))
  14.         end
  15. end
  16.    
  17. function white()
  18.         setwire(wireside, colors.white, onoff)
  19. end
  20. function orange()
  21.         setwire(wireside, colors.orange, onoff)
  22. end
  23. function magenta()
  24.         setwire(wireside, colors.magenta, onoff)
  25. end
  26. function lightblue()
  27.         setwire(wireside, colors.lightBlue, onoff)
  28. end
  29. function yellow()
  30.         setwire(wireside, colors.yellow, onoff)
  31. end
  32. function lime()
  33.         setwire(wireside, colors.lime, onoff)
  34. end
  35. function pink()
  36.         setwire(wireside, colors.pink, onoff)
  37. end
  38. function gray()
  39.         setwire(wireside, colors.gray, onoff)
  40. end
  41. function lightgray()
  42.         setwire(wireside, colors.lightGray, onoff)
  43. end
  44. function cyan()
  45.         setwire(wireside, colors.cyan, onoff)
  46. end
  47. function purple()
  48.         setwire(wireside, colors.purple, onoff)
  49. end
  50. function blue()
  51.         setwire(wireside, colors.blue, onoff)
  52. end
  53. function brown()
  54.         setwire(wireside, colors.brown, onoff)
  55. end
  56. function green()
  57.         setwire(wireside, colors.green, onoff)
  58. end
  59. function red()
  60.         setwire(wireside, colors.red, onoff)
  61. end
  62. function black()
  63.         setwire(wireside, colors.black, onoff)
  64. end
Advertisement
Add Comment
Please, Sign In to add comment