The Switch comes in two flavors: initially opened and initially closed. It is triggered by powering its side with either regular redstone or circuit power. Both types will only permit power to flow when closed.
When the side is powered, the initially opened switch will close while its counterpart will open.
The need for this component came in order to accomplish the Logic Gates. The bit results for both switches are as in the following tables.
Input A | Input B | Result |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
Input A | Input B | Result |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 1 |
1 | 1 | 0 |
Deducing from these tables, the initially opened switch resembles the AND-Gate while the initially closed switch doesn't associate to any other gate. However, combined with another initially closed switch in a certain manner this kind resembles the XOR-Gate. See the respective page for the set-up.
Controls[]
Both switches use the same block and differ only in their initial state.
Placing a switch using an item can be done in three different orientations depending on the direction you are facing:
- Up-down
- North-south
- East-west
Since a switch permits current flow in both directions as long as it is closed, there is no different behavior when sneaking.
A switch can be triggered by both circuit power and regular redstone power.