Advertisement
Guest User

Untitled

a guest
Mar 20th, 2020
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. local redstone = component.proxy(component.list("redstone")())
  2.  
  3. local colors={white=0,orange=1,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, [colors.orange] = 255,  [colors.blue] = 255})
  11.     else
  12.         redstone.setOutput(sides.back, 0)
  13.         redstone.setBundledOutput(sides.right,{[colors.white] = 0, [colors.orange] = 0, [colors.blue] = 0})
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement