Fence

This article is about the general overview of fences. For the fence-like barrier made out of stone types, see Wall. For the openable fence, see Fence Gate.
All fences.

A fence is a barrier block that cannot normally be jumped over, similar to a wall. Unlike a wall, a player (but not mobs) can see through the openings in a fence.

Variants

Obtaining

Crafting

All types of fences can be obtained through crafting.

Name Ingredients Crafting recipe
Wooden Fence Matching Planks +
Stick
Nether Brick Fence Nether Bricks +
Nether Brick

Usage

Barrier

Wooden fences and Nether brick fences connected by fence gates. Notice that they do not form a connection directly between the two types of fences (in the middle).

While fences appear to be a single block tall and have a hitbox height of one block, their collision box (for entities) is 1.5 blocks tall, meaning most mobs cannot jump over them without the Jump Boost status effect. They are transparent to light and have visual gaps in the model. Spiders can climb over a fence, just like any other vertical object. Camels can walk over fences.

A fence occupies the center space of blocks and automatically connects to any solid block that is placed next to it. Wooden fences connect to other wooden fences, but do not connect to Nether brick fences. However, Nether brick fences connect to wooden fence gates.[1] Mobs cannot pass between Nether brick fences and wooden fences, although players can.

Additionally, if a carpet, trapdoor, moss carpet or pale moss carpet is placed above a fence, players are able to jump over the fence while other mobs are unable to, including mobs like zombies with similar attributes to players.

Leads

A horse tied to a tall fence post with a lead.

Fences can be used to attach mobs with a lead.

Block states

See also: Block states

Java Edition:

Name Default value Allowed values Description
eastfalsefalse
true
When true, the fence extends from the center post to the east.
northfalsefalse
true
When true, the fence extends from the center post to the north.
southfalsefalse
true
When true, the fence extends from the center post to the south.
waterloggedfalsefalse
true
Whether or not there's water in the same place as this fence.
westfalsefalse
true
When true, the fence extends from the center post to the west.

Video

History

This table list changes affecting both wooden and Nether brick fences.

Java Edition Alpha
v1.0.17Added fences.
The player spawns with 64 fences.
v1.0.17_01The player no longer spawns with 64 fences.
v1.0.17_02Added a crafting recipe for fences. It requires 6 sticks.
Java Edition Beta
1.6Fences can now be placed below farmland to prevent it from decaying.
Java Edition
1.0.0Beta 1.9 PrereleaseAdded Nether brick fences.
Beta 1.9 Prerelease 2The collision boxes of fences have been reduced.
Fences now connect to solid blocks.
Fences no longer require a solid block underneath to be placed.
Beta 1.9 Prerelease 5Fence selection area has been changed to match its collision box.
Beta 1.9 Prerelease 6Fences no longer prevent farmland from decaying when placed below farmland.
1.4.41.4.3Mobs no longer try to jump over Nether brick fences.​
The texture of fences has been fixed. There was a problem with attached single slabs or stairs, as the connected face was not rendered when attached to other blocks.[2]
1.513w06aFence corners now have a smaller collision box, allowing players to fall through the gap in the middle of four fences placed in a square.
1.6.113w16aMobs can now be tied to fences.
1.6Fences now display a useless hand animation when right clicked.
1.814w32bAdded fences for spruce, birch, jungle, acacia and dark oak wood.
Fences are now crafted with 4 planks of uniform type and 2 sticks, as to accommodate for the new types of fences.
1.915w44bFences now show glitchy elongated textures when connecting to other fences.[3] These may be GPU dependent.
15w45aFences no longer show a bugged texture, however they appear different to how they did prior to 15w44b.
1.1116w39cFences no longer show a useless hand animation when right clicked.
1.1217w15aFences now connect to the solid back sides of stairs.
1.1317w47aIt is now possible to place a fence when the player is within a corner of three fences to form a ring of four, provided the space is sufficient.
18w10cWater can now be placed on the same block as fences.
1.1620w06aAdded crimson and warped fences.
1.1922w11aAdded mangrove fences.
22w14aDue to the addition of mangrove trees and mangrove swamps, mangrove fences are now obtainable and renewable.
1.19.3
Experiment
Update 1.20
22w42aAdded bamboo fences.
1.19.4
Experiment
Update 1.20
23w07aAdded cherry fences.
1.21.2
Experiment
Winter Drop
24w40aAdded pale oak fences.
Pocket Edition Alpha
v0.12.1build 1There are now two types of fences: wooden and Nether brick fences.
Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU0CU11.001.001.00Patch 11.0.1 Added wooden fences.
TU5Pressure plates are now placeable on fences.
TU6Fence collision box decreased to size of fence block.
TU7Added nether brick fences.
Fences now attach to adjacent blocks.
TU19CU71.121.121.12Moved both types of fences from the Miscellaneous tab, to the Building Blocks tab, in the Creative inventory.
TU54CU441.521.521.52Patch 241.0.4Fences now connect to the solid back sides of stairs.
New Nintendo 3DS Edition
0.1.0Added two types of fences: wooden and Nether brick fences.

Issues

Issues relating to "Fence" are maintained on the bug tracker. Issues should be reported and viewed there.

Trivia

  • If a carpet is placed on top of a fence, a player can jump onto the carpet, while mobs cannot (except rabbits).
    • Placing a carpet on top of a fence does not reduce the fence or wall collision box down to one block, it just provides a platform one block high around the fence/wall to make it easier for climbing on the top of the fence.
  • Getting hit by someone else (or shooting themselves with a Punch enchanted bow while sprinting forward) while in midair can cause the knockback to propel the player over a fence they would not be able to jump over normally.
  • Projectiles get stuck in the collision box of the fence and remain there if shot from above.

Gallery

Screenshots

See also

References

External links

Navigation