Fence

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.
== Obtaining ==
=== Breaking ===
Wooden fences are broken most quickly with an axe, but drop when broken with any tool. Nether brick fences require a pickaxe; mining it with anything else destroys it and drops nothing.
=== Natural generation ===
; 
Oak fences generate as part of:
* Regular mineshafts, as the uprights for the supports, where they are plentiful.
* Library rooms of strongholds as railings and chandeliers. In the latter case, there are many torches attached to them.
* Plains villages
* Woodland mansions
* Shipwrecks
; 
Spruce fences generate as part of:
* Swamp huts
* Taiga and snowy tundra villages, where they appear in tables, animal pen, butcher and shepherd houses, lantern lamp post, and other buildings.
* Shipwrecks
; 
Birch fences generate as part of:
* Woodland mansions
* Shipwrecks
; 
Jungle fences generate as part of:
* Desert village armorer houses as the window.
* Shipwrecks
; 
Acacia fences generate as part of:
* Savanna villages, where they appear in tables, animal pen, butcher and shepherd house, stilt house buildings, and other buildings.
* Shipwrecks
; 
Dark oak fences generate as part of:
* Mineshafts generated in badlands biomes, as the supports.
* Woodland mansions
* Shipwrecks
* Pillager outposts, as part of watchtower, tent, cage, and scarecrow.
* Ancient city
; 
Nether brick fences generate as part of:
* Nether fortresses, where they form window bars, balcony fencing, and portcullises.
=== Crafting ===
== Usage ==
=== Barrier ===
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.
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.Mobs cannot pass between Nether brick fences and wooden fences, although players can.
=== Leads ===
Fences can be used to attach mobs with a lead.
=== Fuel ===
Overworld wooden fences can be used as fuel in furnaces, smelting 1.5 items per block.
=== Note Blocks ===
Wooden fences can be placed under note blocks to produce "bass" sound.
Nether brick fences can be placed under note blocks to produce "bass drum" sound.
== Sounds ==
=== Normal wood ===
=== Cherry wood ===
=== Bamboo wood ===
=== Nether wood ===
=== Nether brick ===
== Data values ==
=== ID ===
:
:
=== Block states ===
== Video ==
== History ==
For a more in-depth breakdown of changes to textures and models, including a set of renders for each state combination, see /Asset history
New Nether 2.jpg|First screenshot of nether brick fences released by Jeb. The Nether brick fences are visible on the side of the nether fortress bridges.
New Nether 2 bright.jpg|Brightly lit version.
Sea base fences.png|Underwater buildings with walls composed of stacked fences, before waterlogging.
Pocket Edition v0.10.0 alpha build 1 Development fences.png|First screenshot of new types of fences in 
== Issues ==
== 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.
* Bamboo fences are designed to resemble actual dried bamboo stems, unlike other fences that simply use their respective planks' textures.
== Gallery ==
Oak Fence JE4 BE2.png|Oak Fence
Spruce Fence.png|Spruce Fence
Birch Fence.png|Birch Fence
Jungle Fence.png|Jungle Fence
Acacia Fence.png|Acacia Fence
Dark Oak Fence.png|Dark Oak Fence
Mangrove Fence.png|Mangrove Fence
Cherry Fence (EW).png|Cherry Fence
Bamboo Fence.png|Bamboo Fence
Crimson Fence.png|Crimson Fence
Warped Fence.png|Warped Fence
Nether Brick Fence.png|Nether Bricks Fence
=== Screenshots ===
Pressure plate.png|Pressure plates on fences, which used to create tables.
Fences on Village House.png|Naturally occurring fences in a village.
Passable 2-high fence.png|Mobs can jump onto this fence because of the red wool. Remove the red wool or replace the adjacent fence with a solid block.
New Fences.png|All fence types before 1.20.
Netherfence-pre.jpg|A nondescript image of nether brick fences.
Sticky piston fence.gif|A fence block being pushed and pulled by a sticky piston.
Grum Fences.png|First image of the new fences and fence gates added in 1.8.
=== Concept Art ===
Bamboo Wood and Fences Concept Art.png|Bamboo fences concept art.
== See also ==
* Fence Gate
* Cobblestone Wall
== References ==
== External links ==
*Block of the Month: Fence – Minecraft.net on December 1, 2022
Category:Generated structure blocks
Category:Nether blocks
Category:Manufactured blocks
Category:Utility blocks
Category:Flammable blocks
cs:Plot
de:Zaun
es:Valla
fr:Barrière
hu:Kerítés
it:Staccionata
ja:フェンス
ko:울타리
nl:Hek
pl:Płot
pt:Cerca
ru:Забор
th:รั้ว
uk:Паркан
zh:栅栏