A fence's primary use is for separating an area into two or more parts. Functionally, the fence serves to keep mobs and players either inside or outside. Notably, unlike vanilla minecraft, lighting an area has no impact on mob spawning. Thus lighting a fenced area doesn't guarantee that hostile mobs will not spawn inside.
Still, once spawned outside the; height of a fence will stop mobs from entering the enclosed area. This is effective at keeping zombies and bears at bay but does not mean the area is completely safe.
- Spiders, can climb over the fence with little impedement.
- Skeletons are unable to cross a fence, but they can still shoot over it
- If there is no roof, or the roof is three blocks high or higher, Endermen can still teleport in.
- If you are directly next to the fence, a zombie can still hit you over the fence. As such a careful distance must be kept.
Fences can also be used as railings, to protect against falling off the the edges of balconies, bridges, floating platforms, cliffs, etc. Since fences cannot be jumped over, this keeps players and mobs from falling off while still allowing players to see past the fence. In fact, fences can replace glass for windows, as mobs cannot see through them. Unlike glass, fences can be moved around trivially, and are easily renewable. The hitbox of the fence covers the entire length of the block, thus you are unable to interact, fish, shoot an arrow, etc through the middle of a fence. You can do this through the 'extra' 0.5 block that is at the top of each fence however.
Because fences are 1.5 blocks high, they can be used with other blocks to create shallow stairs (the kind you can sprint up). They have the advantage of allowing a view through the stairs, in case of a monster lurking underneath.
- Watch out for blocks next to the fence. Players, monsters, or captive animals, can use the errant block to jump onto the fence and then over.
- Mobs cannot jump with any speed, thus blocks are okay to have near a fence as long as they are not directly next to it. In fact, having a block nearby would allow you to jump atop the fence if you want without allowing mobs to climb over the fence. So long as there is a gap between the fence and your 'platform' they will be unable to cross.
- When fencing, try to keep the fence to the one level. Anytime your fence climbs one block, you will need to use additional fence pieces to ensure that mobs can't use the height change to get into your enclosure
- Wooden fences will not attach themselves to most transparent blocks, with the exception of other wooden fences and fence gates. Thus they will not attach to walls, nor to blocks that have been chiseled in any way. Likewise, they will not attach to doors, glass, ice, melons, pumpkins/jack-o-lanterns, chests or anvils.
- The gap produced between the fence and the block this way can be used to your advantage. The gap is too narrow for mobs, but the player can attack, fish, shoot or otherwise interact through it.
- Interestingly enough, berry bushes that are a full block high do create a link to a fence placed next to it.
- Mobs cannot pathfind through the gap between two diagonal fences. However, other mobs can push them through such a gap, so your animal pens still need corner pieces. This is a particularly prevalent problem with chickens
- One solution would be to have solid blocks constitute the corners of your pen
- A one-way path -- a gate or door with a pressure plate, an archway with a chests on one side, or even a "stray" block in the right place -- can be useful. They can let an escaped animal wander back into its pen, or a monster wander back out of your territory.
- If a carpet is placed on top of a fence, a player can jump onto the carpet, while mobs cannot (and won't even try). This is safer than a fence gate that might be left open, but it also can't be opened to mobs short of breaking it.
By default, Vanilla Fences cannot be crafted.
If true then the vanilla recipe for crafting vanilla fences is enabled.