Share

Share

Fence

From Minecraft Wiki
Jump to: navigation, search
[edit]Fence
Fence.pngSpruce Fence.pngBirch Fence.pngJungle Fence.pngDark Oak Fence.pngAcacia Fence.png
Oak FenceSpruce FenceBirch FenceJungle FenceDark Oak FenceAcacia Fence
Type

Solid Block

Requirements

None

Physics

No

Transparency

Yes

Luminance

No

Blast resistance

15

Hardness

2

Tool

This block can be broken with any tool, but an axe is the quickest

Renewable

Yes

Stackable

Yes (64)

Flammable

Yes

First appearances

Oak

Alpha 1.0.17

Spruce, Birch, Jungle, Acacia, Dark Oak

1.8 (14w32b)
Drops

Itself

Data values
Oak
dec: 85 hex: 55 bin: 1010101
Spruce
dec: 188 hex: BC bin: 10111100
Birch
dec: 189 hex: BD bin: 10111101
Jungle
dec: 190 hex: BE bin: 10111110
Dark Oak
dec: 191 hex: BF bin: 10111111
Acacia
dec: 192 hex: C0 bin: 11000000
Name
Oak
fence
Spruce
spruce_fence
Birch
birch_fence
Jungle
jungle_fence
Dark Oak
dark_oak_fence
Acacia
acacia_fence

Fences are wooden wall blocks. They count as one and a half blocks tall for player/mob collision, and one block tall for all other purposes. This prevents players and mobs from jumping over them, while using only one actual block space.

Obtaining

Fences are broken most quickly with an axe.

Natural Occurrence

Currently only the oak fence spawns naturally:

  • Fences form the uprights for the supports in Abandoned Mine Shafts, where they are plentiful.
  • They are also found in NPC Villages, where they appear in tables, lampposts, and even enclosures on roofs or behind buildings.
  • Fences occur in library rooms of Strongholds as railings and chandeliers. In the latter case, there are many Torches attached to them.
  • Fences appear on the "patios" and in the front window of Witch Huts

Crafting

Ingredients Crafting recipe

Any Wood Planks +
Stick




Grid layout Arrow (small).png Oak Fence3Spruce Fence3Birch Fence3Jungle Fence3Acacia Fence3Dark Oak Fence3
Oak Wood PlanksSpruce Wood PlanksBirch Wood PlanksJungle Wood PlanksAcacia Wood PlanksDark Oak Wood Planks Stick Oak Wood PlanksSpruce Wood PlanksBirch Wood PlanksJungle Wood PlanksAcacia Wood PlanksDark Oak Wood Planks
Oak Wood PlanksSpruce Wood PlanksBirch Wood PlanksJungle Wood PlanksAcacia Wood PlanksDark Oak Wood Planks Stick Oak Wood PlanksSpruce Wood PlanksBirch Wood PlanksJungle Wood PlanksAcacia Wood PlanksDark Oak Wood Planks

Usage

While fences appear to be a single block tall, they are actually 1.5 blocks tall, meaning most mobs cannot jump over them. Because of this, they can be used as a barrier against mobs. They can also be used as a form of window, since the player can see through the gaps in the fence.

A fence occupies the center space of blocks and automatically connects to any solid block that is placed next to it. 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 hitch mobs with a lead.

Fences can also be used to fuel a furnace, although the player would have been better off burning the wooden planks used to create them.

Video

NOTE: Crafting recipe in video is outdated.

History

Alpha
1.0.17 Added fences. Nothing could be placed on top of them.
Beta
1.3 Fixed standing on top of fences causing players to get stuck and crashing the server in SMP.
1.6 Fences made flammable and visibility improved
1.7 Any block, including torches and other fences, now able to be placed on fences.
1.8 Axes break fences faster.
Official release
1.0.0 Beta 1.9-pre2 Fence collision box reduced.
Fences now connect to solid blocks.
Beta 1.9-pre5 Fence selection area changed to match collision box.
Fences no longer prevent farmland from decaying when placed below farmland.
1.5 Fence 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.1 13w16a Mobs can be tied to fences.
1.8 14w32b Fences have a new crafting recipe, producing 3 fences instead of 2.
Fences can be any type of wood planks.
Pocket Edition Alpha
0.2.0 Added fences.
0.9.0 build 1 Fences now naturally spawn in strongholds, abandoned mine shafts and villages.
Added smooth lighting to fences.
Console Edition
TU1 Added fences.
TU3 Fences are now stackable.
TU5 Pressure plates are placeable on fences.
TU6 Fence collision box decreased to size of fence block.
Pi Edition
0.1.1 Added fences.

Original fence stacking

Instructional diagram of the old stacking system.

When first implemented, the game prevented blocks from being placed above the fence but allowed the fence to be placed on a location when there is a block above it. This loophole was soon commonly exploited to allow fences to be stacked, mainly for aesthetic purposes.

The stacking process was done by creating a wall of blocks one layer shorter than the intended height of the fence and working down. Removing blocks from underneath the fence did not cause it to collapse like cacti and doors, so the lower layers of the wall could be replaced by fences easily, one-by-one. These rules were not applied underwater so they could be stacked just like any other block when submerged.

Before the official release of Minecraft, fence corners did not need to be complete in order to be sealed. A corner where two directions meet at a right angle could be created without the actual corner piece. This would create two separate fences which terminate next to each other without actually touching. While there is a visible gap, players and mobs will still be unable to pass through. This feature could be used to create lengths of diagonal fences, which will appear as nothing but posts, yet will still prevent anything from passing. However, in 1.0.0, the fence's collision box was fit around the fence itself (except for the 1.5 height), thus requiring the corner fence.

Issues

Issues relating to "Fence" are maintained on the issue tracker. Report issues there.

Trivia

  • 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 gate that might be left open, but it also can't be opened to mobs short of breaking it.
  • 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 (this works with other blocks that are 1.5 blocks tall.)

Gallery

See also