Fence Gate

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

Obtaining
Like all wooden blocks, fence gates are most quickly harvested with an axe.

Usage
Fence gates must be placed on a block, but will remain in place if the block is then removed. When placed, fence gates will automatically face towards the player, regardless of any other fences around it.

Fences, Nether brick fences and cobblestone walls will connect to fence gates. If placed and not connected to anything else, a fence gate will appear to be floating.

Fence gates have a collision box that is one and a half blocks tall closed. When open, it has no collision box.

Fence gates can be opened through redstone input, or by pressing, and always open away from the player. Losing redstone power will close the fence gate, unless the gate is being pushed or pulled by a piston. A fence gate can be opened both inwards and outwards.

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

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.