Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local redstone = component.proxy(component.list("redstone")())
- 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}
- local sides={bottom=0,top=1,back=2,front=3,right=4,left=5}
- while true do
- computer.pullSignal(1)
- if redstone.getInput(sides.front) > 0 then
- redstone.setOutput(sides.back, 15)
- redstone.setBundledOutput(sides.right, colors.white, 255)
- redstone.setBundledOutput(sides.right, colors.orange, 255)
- redstone.setBundledOutput(sides.right, colors.blue, 255)
- else
- redstone.setOutput(sides.back, 0)
- redstone.setBundledOutput(sides.right, colors.white, 0)
- redstone.setBundledOutput(sides.right, colors.orange, 0)
- redstone.setBundledOutput(sides.right, colors.blue, 0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement