Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local red=false
- local blue=false
- local green=false
- local black=false
- local white=false
- while true do
- if rs.testBundledInput("right",colors.red) then
- if not red then
- redstone.setBundledOutput("left", colors.red)
- red=true
- end
- else
- red=false
- end
- if rs.testBundledInput("right",colors.blue) then
- if not blue then
- redstone.setBundledOutput("left", colors.blue)
- blue=true
- end
- else
- blue=false
- end
- if rs.testBundledInput("right",colors.green) then
- if not green then
- redstone.setBundledOutput("left", colors.green)
- green=true
- end
- else
- green=false
- end
- if rs.testBundledInput("right",colors.black) then
- if not black then
- redstone.setBundledOutput("left", colors.black)
- black=true
- end
- else
- black=false
- end
- if rs.testBundledInput("right",colors.white) then
- if not white then
- redstone.setBundledOutput("left", colors.white)
- white=true
- end
- else
- white=false
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement