Minecraft – Reverse Timing using redstone

minecraft-java-editionminecraft-redstone

I am looking to reverse the timing of redstone for an airlock system I'm building. I have tried using ABBA and ABAB switches, but to no avail. I would like it to work as follows;

-- Stage 1 --
Inside door is closed
Water side door is open

Close water side door
Wait X ticks (repeater configurable) for water to drain
Open inside door

-- Stage 2 --
Inside door is open
Water side door is closed

Close inside door
Open water side door

As you can see, I only want timing in one direction (when the power is coming on, or going off), and I'm not completely sure how to go about doing this. Any tips would be welcomed.

Best Answer

You were on the right track with an ABBA circuit, as one can be easily modified to do what you want as shown here.

ABBA circuit modified with additional line pf repeaters to keep one phase of cycle running longer

The square of blocks and repeaters on the left is a common ABBA circuit that connects to the doors of the airlock from the blocks in the middle.

The line of repeaters circling around to connect the two blocks that power the doors are what add the ability to extend significantly extend the timing on one phase of the door cycle to allow time for the water to disappear.

In this particular example the block at the top of the image with the redstone torch controls the inside of the airlock and the block at the bottom with the redstone dust controls the outside.

The system is currently in the inside open state. When the lever is flipped it will close the inside doors and a 2 ticks later open the outside doors. The opening of the outside doors will power the additional redstone line.

When the lever is flipped again the system will close the outside doors and then attempt to open the inside doors which will instead be held closed by the additional delay line long enough for the water to clear.