Redstonery › Circuits › Two-by-two piston doorway
Pistons circuit
Two-by-two piston doorway
Coordinate several moving blocks to form one opening.
8 × 4 footprint2 layers29 blocksTested in 4 rotationsJava Edition 26.2
Layout
redstone dustrepeater or comparatorinputpistonmoved or marker blocksolid blockarrows point where a device sends its output; north is up
How it works
One lever closes both sides of a two-block-wide, two-block-high doorway; switching it off retracts all four blocks and clears the passage. Matched repeater feeds drive the upper pistons; the lower pistons also respond through Java quasi-connectivity. Keep the central opening and both side pockets clear. Tests check every door cell and both approaches across three cycles.
- Turning the lever on closes both sides of the two-by-two doorway; turning it off retracts all four door blocks.
- Matched repeater feeds coordinate the upper pistons, while the lower pistons also respond through Java quasi-connectivity. Keep the center and side pockets clear.
Inputs and outputs
- Inputclose doorway (x 3, y 0, z 1)
- Outputleft lower piston closed (x 1, y 0, z 3)
- Outputleft upper piston closed (x 1, y 1, z 3)
- Outputright lower piston closed (x 6, y 0, z 3)
- Outputright upper piston closed (x 6, y 1, z 3)
Blocks you need
10 × redstone dust, 8 × stone, 4 × sticky piston, 4 × white concrete, 2 × repeater, 1 × lever.
Build it in the game: 29 commands
Relative to where you stand, with x running east and z running south. Paste one line at a time into chat, or into a chain of command blocks. The block art is the game's own; the layout is what the page above shows.
setblock ~0 ~0 ~1 minecraft:stone setblock ~0 ~0 ~2 minecraft:stone setblock ~0 ~0 ~3 minecraft:stone setblock ~7 ~0 ~1 minecraft:stone setblock ~7 ~0 ~2 minecraft:stone setblock ~7 ~0 ~3 minecraft:stone setblock ~0 ~1 ~3 minecraft:stone setblock ~7 ~1 ~3 minecraft:stone setblock ~1 ~0 ~3 minecraft:sticky_piston[facing=east] setblock ~1 ~1 ~3 minecraft:sticky_piston[facing=east] setblock ~6 ~0 ~3 minecraft:sticky_piston[facing=west] setblock ~6 ~1 ~3 minecraft:sticky_piston[facing=west] setblock ~2 ~0 ~3 minecraft:white_concrete setblock ~2 ~1 ~3 minecraft:white_concrete setblock ~5 ~0 ~3 minecraft:white_concrete setblock ~5 ~1 ~3 minecraft:white_concrete setblock ~3 ~0 ~1 minecraft:lever[face=floor,facing=north,powered=false] setblock ~0 ~0 ~0 minecraft:redstone_wire setblock ~1 ~0 ~0 minecraft:redstone_wire setblock ~2 ~0 ~0 minecraft:redstone_wire setblock ~3 ~0 ~0 minecraft:redstone_wire setblock ~4 ~0 ~0 minecraft:redstone_wire setblock ~5 ~0 ~0 minecraft:redstone_wire setblock ~6 ~0 ~0 minecraft:redstone_wire setblock ~7 ~0 ~0 minecraft:redstone_wire setblock ~0 ~1 ~1 minecraft:redstone_wire setblock ~0 ~1 ~2 minecraft:repeater[facing=north,delay=1] setblock ~7 ~1 ~1 minecraft:redstone_wire setblock ~7 ~1 ~2 minecraft:repeater[facing=north,delay=1]