See § Data values
See § Data values
A fence gate can be broken with anything, but an axe is fastest.
|Breaking time[note 1]|
- Times are for unenchanted tools in seconds. For more information, see Haste § Instant mining.
Dark oak fence gates naturally generate in woodland mansions.
Acacia fence gates naturally generate in savanna villages.
Jungle fence gates naturally generate in desert villages.
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 Place Block 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.
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.
A fence gate can be used as a switchable barrier.
To open or close a fence gate, use the Use Item 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 closed fence gates as a block and will not detect players through it unless they were already detected.
The sound of opening and closing of a fence gate can be heard up to 16 blocks away, like most mob sounds.
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.
|Oak Fence Gate|
|Spruce Fence Gate|
|Birch Fence Gate|
|Jungle Fence Gate|
|Acacia Fence Gate|
|Dark Oak Fence Gate|
|Block||Namespaced ID||Numeric ID|
|Oak Fence Gate||
|Spruce Fence Gate||
|Birch Fence Gate||
|Jungle Fence Gate||
|Acacia Fence Gate||
|Dark Oak Fence Gate||
In Bedrock Edition, fence gates use the following data values:
|Two bits storing a value from 0 to 3 specifying the direction the gate is facing:
|0x4||0 if the gate is closed, 1 if open.|
|0x8||If 1, the gate is lowered by three pixels, to accommodate attaching more cleanly with normal and mossy Cobblestone Walls.|
|Name||Default value||Allowed values||Description|
|facing||For an open gate, the direction the gates swing open.|
For a closed gate, the direction the player was facing when the gate was placed, or the last direction the gates have swung.
|in_wall||If true, the gate is lowered by three pixels, to accommodate attaching more cleanly with walls.|
|open||If true, the gate is opened.|
|powered||If true, the gate is receiving redstone power.|
|Java Edition Beta|
|November 29, 2010||Fence gates were first mentioned on Get Satisfaction, then confirmed by Jeb on Twitter.|
|1.8||Pre-release||Added fence gate.|
|Sound Update||Fence gate opening and closing sounds have been changed.|
|1.0.0||Beta 1.9 Prerelease 5||Updated the texture as a result of updating the planks texture.|
|1.1||?||Fence gates can now be opened and closed with redstone, and closing on block updates.|
|1.8||14w11a||The inventory icon changed texture for the fence gate now shows the two holes.|
|14w32b||Added birch, spruce, jungle, acacia, and dark oak fence gates. The recipe now requires 2 plank blocks of the same species, but a gate and a wooden fence can connect without matching.|
|Fence gates can now catch fire.|
|1.13||17w47a||The oak fence gate ID has been changed from |
|Fence gates can now be placed without a block below them.|
|Prior to The Flattening, these blocks' numeral IDs were 107, 183, 184, 185, 186 and 187.|
|Pocket Edition Alpha|
|0.2.0||Added oak gates.|
|0.10.0||build 1||Added birch, spruce, jungle, acacia and dark oak variants.|
|The fence gates' inventory models are more akin to the old Java original model.|
|Renamed fence gate to oak fence gate.|
|0.13.0||build 1||Fence gates can now be opened and closed with redstone.|
|1.1.0||alpha 22.214.171.124||Dark oak fence gates now generate naturally in woodland mansions.|
|1.10.0||beta 126.96.36.199||Oak, spruce, jungle, and acacia fence gate generate in new villages.|
|Legacy Console Edition|
|TU5||CU1||1.0||Patch 1||Added fence gates.|
|TU9||Fence gates can now be opened and closed with redstone.|
|TU25||CU14||1.17||Added spruce, birch, and jungle fence gate variants.|
|Renamed fence gate to oak fence gate.|
|TU27||CU15||1.18||Added acacia and dark oak fence gates to the creative inventory.|
|New Nintendo 3DS Edition|
|0.1.0||Added Fence Gates.|