Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("back")
- monitor.clear()
- while true do
- y = rs.getBundledInput("back")
- sleep(1)
- if colors.test (y, colors.purple) == true then
- print ("*----@----@----@----@")
- sleep(1)
- elseif colors.test (y, colors.purple) == false then
- print ("@----@----@----@----@")
- sleep(1)
- end
- sleep(1)
- if colors.test (y, colors.red) == true then
- print ("@++++@----@----@----@")
- sleep(1)
- elseif colors.test (y, colors.red) == false then
- print ("@----@----@----@----@")
- sleep(1)
- end
- if colors.test (y, colors.orange) == true then
- print ("@----*----@----@----@")
- sleep(1)
- elseif colors.test (y, colors.orange) == false then
- print ("@----@----@----@----@")
- sleep(1)
- end
- if colors.test (y, colors.white) == true then
- print ("@----@++++@----@----@")
- sleep(1)
- elseif colors.test (y, colors.white) == false then
- print ("@----@----@----@----@")
- sleep(1)
- end
- if colors.test (y, colors.lime) == true then
- print ("@----@----*----@----@")
- sleep(1)
- elseif colors.test (y, colors.lime) == false then
- print ("@----@----@----@----@")
- sleep(1)
- end
- if colors.test (y, colors.blue) == true then
- print ("@----@----@++++@----@")
- sleep(1)
- elseif colors.test (y, colors.blue) == false then
- print ("@----@----@----@----@")
- sleep(1)
- end
- if colors.test (y, colors.cyan) == true then
- print ("@----@----@----*----@")
- sleep(1)
- elseif colors.test (y, colors.cyan) == false then
- print ("@----@----@----@----@")
- sleep(1)
- end
- if colors.test (y, colors.black) == true then
- print ("@----@----@----@++++@")
- sleep(1)
- elseif colors.test (y, colors.black) == false then
- print ("@----@----@----@----@")
- sleep(1)
- end
- if colors.test (y, colors.magenta) == true then
- print ("@----@----@----@----*")
- sleep(1)
- elseif colors.test (y, colors.magenta) == false then
- print ("@----@----@----@----@")
- sleep(1)
- end
- if colors.test (y, colors.pink) == true then
- print (" + /")
- sleep(1)
- elseif colors.test (y, colors.pink) == false then
- print (" \ /")
- sleep(1)
- end
- if colors.test (y, colors.green) == true then
- print (" \ +")
- sleep(1)
- elseif colors.test (y, colors.green) == false then
- print (" \ /")
- sleep(1)
- end
- if colors.test (y, colors.pink) == true then
- print (" + /")
- sleep(1)
- elseif colors.test (y, colors.pink) == false then
- print (" \ /")
- sleep(1)
- end
- if colors.test (y, colors.green) == true then
- print (" \ +")
- sleep(1)
- elseif colors.test (y, colors.green) == false then
- print (" \ /")
- sleep(1)
- end
- if colors.test (y, colors.brown) == true then
- print (" *-----@")
- sleep(1)
- elseif colors.test (y, colors.brown) == false then
- print (" @-----@")
- sleep(1)
- end
- if colors.test (y, colors.yellow) == true then
- print (" @+++++@")
- sleep(1)
- elseif colors.test (y, colors.yellow) == false then
- print (" @-----@")
- sleep(1)
- end
- if colors.test (y, colors.gray) == true then
- print (" @-----*")
- sleep(1)
- elseif colors.test (y, colors.gray) == false then
- print (" @-----@")
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement