Fence Gate

A fence gate is a block that shares the functions of both the door and the fence.

Obtaining
A fence gate can be with anything, but an axe is fastest.

Placing


A fence gate can be used as a switchable barrier which can be opened and closed by hand or by redstone power.

To place a fence gate, use the control while pointing at a block facing the space the fence gate should occupy. When placed, a fence gate will automatically face towards the player who placed it, regardless of any other fences around it.

A fence gate can only be placed if there is a solid block beneath it, but after being placed the block beneath can be removed without affecting the fence gate.

Fences, nether brick fences and cobblestone walls will connect to fence gates, but glass panes and iron bars will not. If placed and not connected to anything else, a fence gate will appear to be floating.

Barrier


A fence gate can be used as a switchable barrier.

To open or close a fence gate, use the control. When a fence gate opens or closes, it immediately changes its orientation without affecting anything in the space it "passes through"—moving fence gates don't push entities the way that pistons do. When opened by hand, a fence gate always opens away from the player.

Although a fence gate appears to be only one block tall, a closed fence gate is a barrier one and a half blocks high—most mobs cannot jump over a fence gate, and entities on top of the fence gate stand half a block above it.

An open fence gate is completely non-solid, including the open gates. Multiple open fence gates next to each other can be passed through as if the entire space is open.

Hostile mobs recognize the fence gate as a block and will not attack players through it unless they have already seen them.

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

Redstone component
A fence gate can be controlled with redstone power.

A fence gate 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 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 fence gate
 * powered redstone dust configured to point at the fence gate or a directionless "dot" next to it; a fence gate is not activated by adjacent powered redstone dust which is configured to point in another direction.

When activated, a fence gate will immediately open. When deactivated, a fence gate immediately closes.

An activated fence gate can still be closed by a player, and won't re-open until it receives a new activation signal (if a fence gate has been closed "by hand", it still needs to be deactivated and then reactivated to open by redstone).

Fence gates can be moved by pistons. When an activated fence gate is moved by a piston to a position where it shouldn't be activated, it doesn't change its state until it receives a redstone update.

Fuel
Fence gates can be used as a fuel in furnaces, smelting 1.5 items per fence gate.

Data values
Fence gates use six different ID names to determine the type of wood the gate is made from. Fence gates also use block data to determine additional data.