Advertisement
kovakovi2000

CC: BundledCable

Apr 18th, 2020
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.78 KB | None | 0 0
  1. local sd = "back"
  2.  
  3. function setSide(side)
  4.     sd = side
  5. end
  6.  
  7. function off()
  8.     redstone.setBundledOutput(sd, colors.white)
  9. end
  10.  
  11. function offAll()
  12.     redstone.setBundledOutput(sd, 0)
  13. end
  14.  
  15. function red(vtime)
  16.     if vtime == nil then
  17.         redstone.setBundledOutput(sd, colors.red)
  18.     else
  19.         redstone.setBundledOutput(sd, colors.red)
  20.         sleep(vtime)
  21.         off()
  22.     end
  23. end
  24.  
  25. function blue(vtime)
  26.     if vtime == nil then
  27.         redstone.setBundledOutput(sd, colors.blue)
  28.     else
  29.         redstone.setBundledOutput(sd, colors.blue)
  30.         sleep(vtime)
  31.         off()
  32.     end
  33. end
  34.  
  35. function yellow(vtime)
  36.     if vtime == nil then
  37.         redstone.setBundledOutput(sd, colors.yellow)
  38.     else
  39.         redstone.setBundledOutput(sd, colors.yellow)
  40.         sleep(vtime)
  41.         off()
  42.     end
  43. end
  44.  
  45. function green(vtime)
  46.     if vtime == nil then
  47.         redstone.setBundledOutput(sd, colors.green)
  48.     else
  49.         redstone.setBundledOutput(sd, colors.green)
  50.         sleep(vtime)
  51.         off()
  52.     end
  53. end
  54.  
  55. function lightblue(vtime)
  56.     if vtime == nil then
  57.         redstone.setBundledOutput(sd, colors.lightBlue)
  58.     else
  59.         redstone.setBundledOutput(sd, colors.lightBlue)
  60.         sleep(vtime)
  61.         off()
  62.     end
  63. end
  64.  
  65. function lightgray(vtime)
  66.     if vtime == nil then
  67.         redstone.setBundledOutput(sd, colors.lightGray)
  68.     else
  69.         redstone.setBundledOutput(sd, colors.lightGray)
  70.         sleep(vtime)
  71.         off()
  72.     end
  73. end
  74.  
  75. function lime(vtime)
  76.     if vtime == nil then
  77.         redstone.setBundledOutput(sd, colors.lime)
  78.     else
  79.         redstone.setBundledOutput(sd, colors.lime)
  80.         sleep(vtime)
  81.         off()
  82.     end
  83. end
  84.  
  85. function brown(vtime)
  86.     if vtime == nil then
  87.         redstone.setBundledOutput(sd, colors.brown)
  88.     else
  89.         redstone.setBundledOutput(sd, colors.brown)
  90.         sleep(vtime)
  91.         off()
  92.     end
  93. end
  94.  
  95. function purple(vtime)
  96.     if vtime == nil then
  97.         redstone.setBundledOutput(sd, colors.purple)
  98.     else
  99.         redstone.setBundledOutput(sd, colors.purple)
  100.         sleep(vtime)
  101.         off()
  102.     end
  103. end
  104.  
  105. function magenta(vtime)
  106.     if vtime == nil then
  107.         redstone.setBundledOutput(sd, colors.magenta)
  108.     else
  109.         redstone.setBundledOutput(sd, colors.magenta)
  110.         sleep(vtime)
  111.         off()
  112.     end
  113. end
  114.  
  115. function cyan(vtime)
  116.     if vtime == nil then
  117.         redstone.setBundledOutput(sd, colors.cyan)
  118.     else
  119.         redstone.setBundledOutput(sd, colors.cyan)
  120.         sleep(vtime)
  121.         off()
  122.     end
  123. end
  124.  
  125. function pink(vtime)
  126.     if vtime == nil then
  127.         redstone.setBundledOutput(sd, colors.pink)
  128.     else
  129.         redstone.setBundledOutput(sd, colors.pink)
  130.         sleep(vtime)
  131.         off()
  132.     end
  133. end
  134.  
  135. function black(vtime)
  136.     if vtime == nil then
  137.         redstone.setBundledOutput(sd, colors.black)
  138.     else
  139.         redstone.setBundledOutput(sd, colors.black)
  140.         sleep(vtime)
  141.         off()
  142.     end
  143. end
  144.  
  145. function multi(vtime, color)
  146.     if color == nil then
  147.         return
  148.     end
  149.    
  150.     if vtime == nil then
  151.         redstone.setBundledOutput(sd, color)
  152.     else
  153.         redstone.setBundledOutput(sd, color)
  154.         sleep(vtime)
  155.         off()
  156.     end
  157. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement