Door

A door is a block that can be used to allow or block access to mobs (including players).

There are seven different kinds of doors: six types of wood doors, and an iron door.

Obtaining
Doors can be obtained by crafting, and can be found in villages and strongholds.

Natural generation
Oak wood doors are generated on buildings in villages, forming the entrances to the majority of buildings. Oak wood doors and iron doors generate naturally in strongholds, with the latter having a stone button to open.

Usage
Wood doors can be opened and closed by players and villagers, and can be broken by zombies in Hard mode. Iron doors can only be opened with redstone power.

To place a door, it while pointing at a surface facing the space the door should occupy. A door can be attached to:
 * the top of any full solid opaque block
 * the top of an upside-down slab or upside-down stairs

When placed, a door will be facing in the opposite direction of the player who placed it -- if the door was placed in front of the player, the door will be facing the player; if the door was placed in the same block as the player, the door will end up behind the player, facing away from them.

By default a door's "hinge" will be on the left side, but placing a door to the right of another door will force the hinge to the right side (creating a double door where both doors open away from each other). Placing a door to the left of a block will also force the hinge to the right side (so the hinge seems to attach to the block).

A door acts as a barrier to entity movement. Although primarily used to block movement by mobs and players, a door can also be used to control the movement of boats (for example, a door placed in a two-wide water flow will stop a boat when perpendicular to the flow, but allow it to move again when parallel), items and minecarts (a door can stop a falling item or minecart, then allow it to drop again when the door moves), etc.

Doors are 0.1875 ($3/16$) blocks thick. The rest of a door's space can be moved through freely and provides a breathable space if placed underwater.

To remove a door, it. Removing a wood door by hand takes 4.5 seconds (or faster with an axe) and removing an iron door by hand takes 25 seconds (or much faster with a pickaxe). An iron door removed by hand will not drop itself as an item, but an iron door removed with a pickaxe or a wood door removed by any method will drop itself as an item.

A door will also be removed and drop itself as an item:
 * if its attachment block is moved, removed, or destroyed
 * if a piston tries to push it or moves a block into its space

Water and lava will both flow around doors, but wood doors can catch fire from lava.

Opening and closing
To open or close a wood door, use the control. When a door opens or closes, it immediately changes its orientation without affecting anything in the space it "passes through". Moving doors don't push entities the way that pistons do.

A door occupies two block spaces. If a player is occupying the space a door moves to, the player can jump up to land on the bottom part of the door and then again to land on top of the door.

Villagers can open and close wood doors, but only do so with doors they consider part of their village.

Zombies can break wood doors in Hard mode, but only do so to reach targeted players or villagers. Zombies will only attempt to break wood doors which are in their "closed" state, even if a door is placed so that its "open" state blocks access (for example, by facing sideways when placing a door so that it allows passage when closed and blocks passage when open).

Iron doors can only be opened with redstone power (a button, a redstone circuit, etc.). Villagers and zombies cannot affect an iron door.

The sound of opening and closing of a door can be heard up to 16 blocks away, like most mob sounds.

Redstone component
Both wood and iron doors can be controlled with redstone power.

A door is a redstone mechanism and can be activated by:
 * an adjacent active power component, including above or below: for example, a redstone torch, a block of redstone, a daylight sensor, etc.
 * an adjacent powered opaque block (for example, a block with an active redstone torch under it), including above or below
 * a powered redstone comparator or redstone repeater facing the door
 * powered redstone dust configured to point at the door or a directionless "dot" next to it; a door is not activated by adjacent powered redstone dust which is configured to point in another direction.

All methods of activating a door can be applied to either the top or bottom parts of a door.

When activated, a door will immediately "rotate" around its hinge side to occupy a different side of its block. When deactivated, a door immediately returns to its original state.

An activated wood door can still be closed by a player or villager, and won't re-open until it receives a new activation signal.

Data values
A door's type is defined by its ID name, and its orientation and status are stored in the block data of its top and bottom halves. A door also has a block state which is expected to replace the functionality of block data in a future version.

ID name
A door's ID name defines what type of door it is.

Block data
A door stores its hinge side in the block data of its upper block, and its facing and opened status in the block data of its lower block.

Trivia

 * In Pocket Edition, standing in the center of a door will mean that you can punch blocks on the other side of the door without any interference.
 * If you punch a door in the Xbox 360 Edition it will open.

Gallery
Tür Puerta Porte Porta 문 Deur Drzwi Дверь 门