XOR Gates

#1
Is there any way to create a XOR gate (Output true if receiving 1 signal, false if receiving 0 or 2+) using the logic gates available? I needed it to make some automatic stuff in my newest submarine but I can't figure out how.
:duck:

Re: XOR Gates

#2
XOR Gate - https://www.dropbox.com/s/5uf4brini1l5h ... e.sub?dl=0

Green OR is input.
Green AND compares the OR Gates.
Cyan NOT checks if there is no signal from Green OR.
Cyan AND checks if there is no signal from both Green ORs.
Red AND checks if both Cyan AND and Green AND are on.
Orange OR (Output) receives Red AND.

Cyan AND output is 0, False output is 1.
Green AND output is 0, False output is 1.

Since there is no way to count how many inputs are connected simultaneously, you will have to have a green OR gate for every four extra inputs at least. Depending on what you wire, you may have a lot of spaghetti mesh wires.