Advertisement
Guest User

Untitled

a guest
Mar 20th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. local redstone = component.proxy(component.list("redstone")())
  2.  
  3. local colors={white=0,orange=2,magenta=2,lightBlue=3,yellow=4,lime=5,pink=6,gray=7,silver=8,cyan=9,purple=10,blue=11,brown=12,green=13,red=14,black=15}
  4. local sides={bottom=0,top=1,back=2,front=3,right=4,left=5}
  5.  
  6. while true do
  7.     computer.pullSignal(1)
  8.     if redstone.getInput(sides.front) > 0 then
  9.         redstone.setOutput(sides.back, 15)
  10.         redstone.setBundledOutput(sides.right, colors.white, 255)
  11.         redstone.setBundledOutput(sides.right, colors.orange, 255)
  12.         redstone.setBundledOutput(sides.right, colors.blue, 255)
  13.     else
  14.         redstone.setOutput(sides.back, 0)
  15.         redstone.setBundledOutput(sides.right, colors.white, 0)
  16.         redstone.setBundledOutput(sides.right, colors.orange, 0)
  17.         redstone.setBundledOutput(sides.right, colors.blue, 0)
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement