The Contraptions Workshop DLC introduced a range of "Advanced switches". Playing around with these, I found the AND, OR, and XOR gates to work exactly as expected, but not the NOT, NAND, NOR and XNOR gates. Here's a fairly long explanation of what I've tried to get them to work:
This was my first attempt at using a NAND gate (which should be transmitting power unless both inputs are turned on):
Reading up, I discovered that the N- gates "only transmit power if their inputs are connected directly to the output of other logic gates."
My next attempt, which I expected to work based on the information above, was to have an AND gate feeding into the NOT gate as such:
But, despite the NOT gate's input coming directly from the AND gate, the NOT gate did not turn on.
The problem seemed to be that:
- if the previous gate transferred power as its conditions were met, the NOT gate would invert the power and stay off.
- if the previous gate's conditions were not met, no power would pass onto the NOT gate for it to be able to turn on the light.
As a final attempt, I ran the AND's output into a NAND gate instead, which I can have one input powered whilst still having it (hopefully) turn on:
So, from what I understand:
- The NAND gate should be receiving power from the generator, in order for it to be able to turn on if its conditions are met.
- The AND gate is not transmitting power, so the NAND gate should have its conditions met.
- The light is still not turning on.
My question is, how do I get these N- gates to function? What is the logic behind when they transmit power? Perhaps I'm making an obvious mistake here like wiring them wrong, or have a misunderstanding of how these gates are intended to work.