Fence

Fences are wall blocks that cannot be jumped over.

Obtaining
Wood fences are broken most quickly with an axe, but will drop when broken with any tool. Nether brick fences require a pickaxe to get it back, mining it with anything else will drop nothing.

Natural generation
Oak fences spawn naturally:
 * As the uprights for the supports in abandoned mine shafts, where they are plentiful.
 * In villages, where they appear in tables, lamp posts, and even enclosures on roofs or behind buildings.
 * In library rooms of strongholds as railings and chandeliers. In the latter case, there are many torches attached to them.
 * On the "patios" and in the front window of witch huts.

Nether brick fences can be found naturally in nether fortresses where they form window bars and gate-like structures.

Crafting
In Console Edition

Usage
While fences appear to be a single block tall, they are actually 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.

A fence occupies the center space of blocks and automatically connects to any solid block that is placed next to it. Fences will connect to fences of the same type, and wood fences will connect to other wood fences, although wood fences will not connect to nether brick fences.

Since their hitbox is smaller than a single block, it will allow a mob in the block to breathe even when submerged.

Fences can be used to attach mobs with a lead.

Nether brick fences do not exist in Pocket Edition.

If a block is in front of it, mobs can climb over the fence.

Fuel
When used as a fuel in a furnace, a wood fence lasts 15 seconds (or 1.5 items).

Trivia

 * If a carpet is placed on top of a fence, a player can jump onto the carpet, while mobs will not (except rabbits).
 * If you try to use an item with a right-click function while looking at a fence, the item will not perform its function but will instead appear to be attempting to mine the fence. The fence will never break from this “mining”.
 * Getting hit by someone else (or shooting yourself with a knockback enchanted bow while sprinting forwards) while in midair can cause the knockback to propel you over the fence.