Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local white = 0
- local orange = 0
- local magenta = 0
- local lightblue = 0
- local yellow = 0
- local lime = 0
- local grey = 0
- local lightgrey = 0
- local cyan = 0
- local purple = 0
- local blue = 0
- local brown = 0
- local green = 0
- local red = 0
- local black = 0
- while true do
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.white)) == true then
- white = 1
- else
- white = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.orange)) == true then
- orange = 2
- else
- orange = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.magenta)) == true then
- magenta = 4
- else
- magenta = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.lightBlue)) == true then
- lightblue = 8
- else
- lightblue = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.yellow)) == true then
- yellow = 16
- else
- yellow = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.lime)) == true then
- lime = 32
- else
- lime = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.pink)) == true then
- pink = 64
- else
- pink = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.gray)) == true then
- grey = 128
- else
- grey = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.lightGray)) == true then
- lightgrey = 256
- else
- lightgrey = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.cyan)) == true then
- cyan = 512
- else
- cyan = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.purple)) == true then
- purple = 1024
- else
- purple = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.blue)) == true then
- blue = 2048
- else
- blue = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.brown)) == true then
- brown = 4096
- else
- brown = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.green)) == true then
- green = 8192
- else
- green = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.red)) == true then
- red = 16384
- else
- red = 0
- end
- if redstone.getInput("left") == true and (colors.test (redstone.getBundledInput("front"), colors.black)) == true then
- black = 32768
- else
- black = 0
- end
- redstone.setBundledOutput("right", white+orange+magenta+lightblue+yellow+lime+pink+grey+lightgrey+cyan+purple+blue+brown+green+red+black)
- sleep(0.2)
- end --while
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement