Redstonery
RedstoneryCircuits › Piston door (quasi-connected)
Pistons circuit

Piston door (quasi-connected)

Use one control to coordinate a vertical mechanism.

3 × 1 footprint2 layers6 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 0sticky piston [facing=east] at x 1, z 0stone at x 2, z 0
Layer 1 (1 up)
lever [face=floor, facing=north, powered=false] at x 0, z 0sticky piston [facing=east] at x 1, z 0stone at x 2, z 0
inputpistonsolid blockarrows point where a device sends its output; north is up

How it works

Two sticky pistons stacked; the lever touches only the top one, and the bottom one follows by quasi-connectivity, the rule that a piston is powered when the block above it is.

  1. The stacked pistons move their door blocks when the control changes.
  2. Java quasi-connectivity can power a piston through the position above it, while neighbor updates determine when it reacts.

Inputs and outputs

  • Inputlever (x 0, y 1, z 1)
  • Partthe door, pushed to 3 (x 2, y 0, z 1)

Blocks you need

3 × stone, 2 × sticky piston, 1 × lever.

Build it in the game: 6 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 ~1 ~1 minecraft:lever[face=floor,facing=north,powered=false]
setblock ~1 ~0 ~1 minecraft:sticky_piston[facing=east]
setblock ~1 ~1 ~1 minecraft:sticky_piston[facing=east]
setblock ~2 ~0 ~1 minecraft:stone
setblock ~2 ~1 ~1 minecraft:stone