Redstonery
RedstoneryCircuits › 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
Open in the simulatorBuild it in the game

Layout

Layer 0 (on the floor)
stone at x 0, z 1stone at x 0, z 2stone at x 0, z 3stone at x 7, z 1stone at x 7, z 2stone at x 7, z 3sticky piston [facing=east] at x 1, z 3sticky piston [facing=west] at x 6, z 3white concrete at x 2, z 3white concrete at x 5, z 3lever [face=floor, facing=north, powered=false] at x 3, z 1redstone dust at x 0, z 0redstone dust at x 1, z 0redstone dust at x 2, z 0redstone dust at x 3, z 0redstone dust at x 4, z 0redstone dust at x 5, z 0redstone dust at x 6, z 0redstone dust at x 7, z 0
Layer 1 (1 up)
stone at x 0, z 3stone at x 7, z 3sticky piston [facing=east] at x 1, z 3sticky piston [facing=west] at x 6, z 3white concrete at x 2, z 3white concrete at x 5, z 3redstone dust at x 0, z 1repeater [facing=north, delay=1] at x 0, z 2redstone dust at x 7, z 1repeater [facing=north, delay=1] at x 7, z 2
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.

  1. Turning the lever on closes both sides of the two-by-two doorway; turning it off retracts all four door blocks.
  2. 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]