REDSTONEPEDIA › Circuits › Automatic doors

Automatic door: opens as you walk up, closes behind you (2×2 piston door)

opens as you walk up, closes behind you · 91 blocks · you wait up to 0.65 s at the door

A 2×2 piston door that opens by itself when you walk up from either side and closes behind you, even when two people walk through close together. It also stays open for someone standing in the doorway, but if someone else walks through while you stand there, it can still close on you and hurt you (half a heart per hurt) until you step out.

stays open for someone standing in the doorway (the main design closes on them) · it closes 2 s after you pass · fits in 7×7×9

opens as you walk up, closes behind youAutomatic door3D view loading (or not available in this browser)

Try it

The view shows the door as built: the browser's simulator has no walkers to open it. In the game, walk up to it from either side: it opens as you reach it (you may wait up to 0.65 s at the door) and closes once you have passed. Stop in the doorway and it stays open for you.

How this design does it: It runs right under the right hooks' blocks, which power the dust below them, so no wiring under the floor and no blocks to stop dust climbing where it must not.

Build it

Download .litematic Download the design as text

The .litematic opens in Litematica (Minecraft 26.3): every block of the design in one region. The text file is the same build written as plain text, block by block.

Put its plates where mobs can't walk: a mob on a plate opens it too. Its outer rows are tripwire strings, which a dropped item presses too: keep items off them.

Blocks used: redstone torch redstone wire repeater smooth stone sticky piston stone stone pressure plate tripwire tripwire hook

Which to build: this door also stays open for someone standing in the doorway: 91 blocks. If nobody will stand in your doorway, the door that closes on them is smaller and opens before you reach it, even at a sprint: Automatic door: opens as you walk up, closes behind you · 42 blocks · no waiting, even sprinting. If the entrance doesn't need to be hidden, two iron doors with pressure plates do the job in about 10 blocks.

Details: how it works, measurements and properties

In depth

A 2×2 piston door: four sticky pistons pull the four door blocks into the wall. Its detectors lie in the walkway on both sides of the door, where you step anyway: stone pressure plates, which feel players and mobs but never dropped items (a wooden plate would feel items too), or tripwire strings, which feel anything that crosses them. A plate powers the block under it, and the signal runs under the floor to the redstone that holds the pistons closed: step on a plate and the door opens.

A stone plate stays down for at least 1 second after it is pressed and checks again every second, letting go once nobody is on it, so the door closes a second or two after the last person has passed. The doorway itself is only one block deep: you cross it, between the plates on either side, in a fraction of a second.

Nothing can feel someone standing in the doorway: no detector fits there, since the pistons sweep it and a plate or a string pushed into pops off. A door with no memory, the simplest, closes on them; one with memory reads the order its plates were pressed in and stays open for them, for about twice the blocks.

How to try it

The view shows the door as built, closed: the browser's simulator has no walkers, so nothing steps on its plates here. Drag to look around, pinch or scroll to zoom. Its pressure plates lie in the walkway on both sides of the door, where you step anyway: in the game, walk through from either side.

Measurements

metricvaluewhat it means
door2x2the size of the doorway it opens
open wait0.65 sthe longest a walker waited at the closed door before it opened, in game ticks
close delay2 sgame ticks from the last walker leaving the doorway to the door being flush again
stop in doorwaythe door stays openwhat the door does when someone stops and stands still in the doorway: stays open for them, or closes on them (it squeezes them and hurts them, half a heart per hurt, until they step out); reported, not required

Notes from its designer

It runs right under the right hooks' blocks, which power the dust below them, so no wiring under the floor and no blocks to stop dust climbing where it must not.

Properties

StudyAutomatic doors
KindAutomatic door: opens as you walk up, closes behind you (2×2 piston door)
Blocks placed91
Box7×7×9 (441 blocks of space)
Made of (the blocks that change state)redstone torch, redstone wire, repeater, smooth stone, sticky piston, stone, stone pressure plate, tripwire, tripwire hook
Flagssize
Design fileauto-door-lock-v12

The design file

on GitHub

Design file (95 lines)
# Automatic door: opens as you walk up, closes behind you · 91 blocks · you wait up to 0.65 s at the door
# https://vjeux.github.io/redstonepedia/circuits/autodoor/auto-door-lock-v12.html
name: auto-door-lock-v12
circuit: auto-door
port door.a: 0 0 0
port door.b: 1 1 0
origin: -3 0 -4
palette:
  S minecraft:stone
  A minecraft:smooth_stone
  P minecraft:stone_pressure_plate[powered=false]
  W minecraft:redstone_wire[east=none,north=none,power=0,south=none,west=none]
  a minecraft:repeater[delay=1,facing=east,locked=true,powered=false]
  l minecraft:repeater[delay=4,facing=south,locked=false,powered=true]
  q minecraft:repeater[delay=4,facing=east,locked=false,powered=false]
  T minecraft:redstone_torch[lit=true]
  t minecraft:redstone_torch[lit=false]
  n minecraft:redstone_wall_torch[facing=north,lit=true]
  h minecraft:tripwire_hook[attached=true,facing=east,powered=false]
  g minecraft:tripwire_hook[attached=true,facing=west,powered=false]
  - minecraft:tripwire[attached=true,disarmed=false,east=true,north=false,powered=false,south=false,west=true]
  K minecraft:sticky_piston[extended=true,facing=east]
  k minecraft:piston_head[facing=east,short=false,type=sticky]
  J minecraft:sticky_piston[extended=true,facing=west]
  j minecraft:piston_head[facing=west,short=false,type=sticky]
layer -3:
  .......
  .......
  .......
  ...SS..
  ...S...
  .SSSS..
  .S.....
  .......
  ..SSSS.
layer -2:
  ......S
  ......S
  ......S
  ...WW.S
  ...W..S
  SaWWW.S
  .l....S
  .n....S
  .SqWWWS
layer -1:
  ......W
  ......W
  ......W
  ...SS.W
  ......W
  T..SS.W
  ......W
  ......W
  ......W
layer 0:
  .Sh--gS
  .......
  .......
  ...PP..
  .KkAAjJ
  S..PP..
  .......
  .......
  .Sh--gS
layer 1:
  .......
  .......
  .......
  .......
  .KkAAjJ
  t......
  .......
  .......
  .......
layer 2:
  .......
  .......
  .......
  .......
  nSSSSSS
  S......
  .......
  .......
  .......
layer 3:
  .......
  .......
  .......
  .......
  SWWWWWW
  .......
  .......
  .......
  .......