Fence
Transparent |
Yes |
---|---|
Luminance |
0 |
Blast resistance |
15 (Wood) |
Tools | |
Renewable |
Wood: Yes |
Stackable |
Yes (64) |
Flammable |
Wood: Yes (5) |
Catches fire from lava |
Wood: Yes |
Drops |
Itself |
Data values |
See § Data values |
Namespaced ID |
See § Data values |
Tags |
See § Data values
|
Fences are wall blocks that cannot normally be jumped over.
Contents
Occurrence[edit]
Natural generation[edit]
Oak fences spawn naturally:
- As the uprights for the supports in mineshafts, where they are plentiful.
- In plains villages and desert villages[Legacy Console Edition only], 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.
Spruce fences spawn naturally:
- In witch huts.
- In taiga, snowy taiga, and snowy tundra villages, where they appear in tables, lamp posts, and even enclosures on roofs or behind buildings.
Acacia fences generate naturally in savanna villages, where they appear in tables, lamp posts, and even enclosures on roofs or behind buildings.
Oak, birch and dark oak wood fences generate naturally in woodland mansions.
Oak, birch, spruce, jungle, acacia, and dark oak wood fences can generate in shipwrecks.
Nether brick fences can be found naturally in nether fortresses, where they form window bars, balcony fencing, and gate-like structures.
Dark oak fences spawn as the supports in above-ground mineshafts.
Dark oak fences generate in pillager outposts.
Jungle fences generate in desert village armorer houses.[BE & JE only]
Obtaining[edit]
Wood fences are broken most quickly with an axe, but will drop when broken with any tool. Nether brick fences require a pickaxe, mining it with anything else will drop nothing.
Block | Fences | Nether Brick | |
---|---|---|---|
Hardness | 2 | 2 | |
Tool | |||
Breaking time[note 1] | |||
Hand | 3 | 10 | |
Wooden | 1.5 | 1.5 | |
Stone | 0.75 | 0.75 | |
Iron | 0.5 | 0.5 | |
Diamond | 0.4 | 0.4 | |
Golden | 0.25 | 0.25 |
- ↑ Times are for unenchanted tools in seconds. For more information, see Haste § Instant mining.
Crafting[edit]
Name | Ingredients | Crafting recipe |
---|---|---|
Wood Fence | Matching Planks + Stick |
|
Nether Brick Fence | Nether Bricks + Nether Brick |
Usage[edit]
Barrier[edit]
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.
A fence occupies the center space of blocks and automatically connects to any solid block that is placed next to it. Wood fences will connect to other wood fences, but will not connect to nether brick fences.
Leads[edit]
Fences can be used to attach mobs with a lead.
Fuel[edit]
Wooden fences can be used as a fuel in furnaces, smelting 1.5 items per block.
Sounds[edit]
Sound | Subtitle | Namespaced ID | Subtitle ID | Source | Pitch | Volume | Attenuation distance |
---|---|---|---|---|---|---|---|
Block breaking | block.stone.hit
|
subtitles.block.generic.hit
|
Blocks | 0.5 | 0.25 | 16 | |
Block broken | block.stone.break
|
subtitles.block.generic.break
|
Blocks | 0.8 | 1.0 | 16 | |
Block placed | block.stone.place
|
subtitles.block.generic.place
|
Blocks | 0.8 | 1.0 | 16 | |
Footsteps | block.stone.step
|
subtitles.block.generic.footsteps
|
Blocks | 1.0 | 0.15 | 16 | |
No subtitle | block.stone.fall
|
(Plays when fallen on from a height) | Blocks | 0.75 | 0.5 | 16 | |
Block breaking | block.wood.hit
|
subtitles.block.generic.hit
|
Blocks | 0.5 | 0.25 | 16 | |
Block broken | block.wood.break
|
subtitles.block.generic.break
|
Blocks | 0.8 | 1.0 | 16 | |
Block placed | block.wood.place
|
subtitles.block.generic.place
|
Blocks | 0.8 | 1.0 | 16 | |
Footsteps | block.wood.step
|
subtitles.block.generic.footsteps
|
Blocks | 1.0 | 0.15 | 16 | |
No subtitle | block.wood.fall
|
(Plays when fallen on from a height) | Blocks | 0.75 | 0.5 | 16 |
Data values[edit]
ID[edit]
Block | Namespaced ID | Tags |
---|---|---|
Oak Fence | oak_fence
|
#fences, #wooden_fences |
Spruce Fence | spruce_fence
|
#fences, #wooden_fences |
Birch Fence | birch_fence
|
#fences, #wooden_fences |
Jungle Fence | jungle_fence
|
#fences, #wooden_fences |
Acacia Fence | acacia_fence
|
#fences, #wooden_fences |
Dark Oak Fence | dark_oak_fence
|
#fences, #wooden_fences |
Nether Brick Fence | nether_brick_fence
|
#fences |
Block | Namespaced ID | Numeric ID |
---|---|---|
Wooden Fence | fence
|
85 |
Nether Brick Fence | nether_brick_fence
|
113 |
Block data[edit]
In Bedrock Edition, fences use the following data values:
DV | Description | |
---|---|---|
0 | Oak Fence | |
1 | Spruce Fence | |
2 | Birch Fence | |
3 | Jungle Fence | |
4 | Acacia Fence | |
5 | Dark Oak Fence |
Block states[edit]
Name | Default value | Allowed values | Description |
---|---|---|---|
east | false | false true | When true, the fence extends from the center post to the east. |
north | false | false true | When true, the fence extends from the center post to the north. |
south | false | false true | When true, the fence extends from the center post to the south. |
waterlogged | false | false true | Whether or not there's water in the same place as this fence. |
west | false | false true | When true, the fence extends from the center post to the west. |
History[edit]
Java Edition Alpha | |||||||
---|---|---|---|---|---|---|---|
v1.0.17 | ![]() | ||||||
Fences do not connect to solid blocks [more information needed]. | |||||||
v1.0.17_01 | The player no longer starts with fences in their inventory.[needs testing] | ||||||
Java Edition Beta | |||||||
1.3 | Standing on top of fences causing players to get stuck and crashing the server in multiplayer have now been fixed. | ||||||
1.6 | ? | Fences are now flammable and the visibility of them has now been improved. | |||||
1.7 | Any block, including torches and other fences, are now able to be placed on fences. | ||||||
1.8 | Pre-release | Added villages and strongholds, where wooden fences naturally generate. | |||||
? | Axes will now break fences faster. | ||||||
1.8.1 | Fences now generate in abandoned mineshafts. | ||||||
Java Edition | |||||||
1.0.0 | Beta 1.9 Prerelease | ![]() | |||||
Beta 1.9 Prerelease 2 | The collision boxes of fences have now been reduced. | ||||||
Fences will now connect to solid blocks. | |||||||
Beta 1.9 Prerelease 5 | Fence selection area has now been changed to match its collision box. | ||||||
![]() | |||||||
Beta 1.9 Prerelease 6 | Fences no longer prevent farmland from decaying when placed below farmland. | ||||||
1.4.2 | 12w36a | It is now possible to place pressure plates on top of nether brick fences. | |||||
1.4.4 | ? | Mobs no longer try to jump over nether brick fences.[more information needed] | |||||
The texture of fences has now been fixed. There was a problem when attached single slab or stairs because the face not rendered when attached other blocks. [1] | |||||||
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 now be tied to fences. | |||||
1.8 | 14w32b | Fences have a new crafting recipe using 4 plank blocks of the same type to produce 3 fences. Previously, it required six sticks in a 2×3 grid to produce 2.
| |||||
![]() ![]() ![]() ![]() ![]() | |||||||
"Fence" has now been renamed to "Oak Fence". | |||||||
1.11 | 16w39a | Oak, birch and dark oak wood fences will now generate in woodland mansions. | |||||
1.12 | 17w15a | Fences will now connect to the solid back sides of stairs. | |||||
1.13 | 17w47a | The Oak fence ID has now been changed from fence to oak_fence .
| |||||
It 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. | |||||||
Prior to The Flattening, these blocks' numeral IDs were 85, 113, 188, 189, 190, 191 and 192. | |||||||
18w10c | Water can now be placed on the same block as fences. | ||||||
1.14 | 18w43a | ![]() ![]() ![]() ![]() ![]() | |||||
Nether brick fence recipe has now been changed to avoid conflict with the nether brick wall recipe. | |||||||
19w03a | Wood fences can now be used to craft composters. | ||||||
Pocket Edition Alpha | |||||||
0.2.0 | ![]() | ||||||
0.9.0 | build 1 | Fences now naturally spawn in strongholds, abandoned mineshafts and villages. | |||||
Added smooth lighting to fences. | |||||||
0.10.0 | build 1 | ![]() ![]() ![]() ![]() ![]() | |||||
"Fence" has now been renamed to "Oak Fence". | |||||||
0.12.1 | build 1 | ![]() | |||||
build 12 | Torches can now be placed on top of nether brick fences. | ||||||
0.14.0 | build 1 | Spruce wood fences now generate in witch huts. | |||||
0.14.2 | ![]() | ||||||
0.15.0 | build 1 | Savanna villages now generate with acacia wood fences rather than oak fences. | |||||
Spruce wood fences now generate in taiga, snowy tundra and snowy taiga villages. | |||||||
Pocket Edition | |||||||
1.1.0 | alpha 1.1.0.0 | Oak, birch and dark oak wood fences now generate in woodland mansions. | |||||
Bedrock Edition | |||||||
1.4.0 | beta 1.2.14.2 | Wooden fences now generate in shipwrecks. | |||||
1.9.0 | beta 1.9.0.0 | The recipe for nether brick fences has now been changed to avoid conflict with the nether brick wall recipe. | |||||
1.10.0 | beta 1.10.0.3 | ![]() ![]() ![]() ![]() ![]() | |||||
Dark oak fence gates now generate in pillager outposts. | |||||||
Due to architecture changes, oak fences no longer generate in desert villages. | |||||||
Jungle fences will now generate in desert village armorers. | |||||||
Legacy Console Edition | |||||||
TU1 | CU1 | 1.0 | Patch 1 | Patch 1 | ![]() | ||
TU3 | Fences are now stackable. | ||||||
TU5 | Pressure plates are now placeable on fences. | ||||||
TU6 | The fence collision box has now been decreased to size of fence block. | ||||||
TU7 | ![]() | ||||||
TU25 | CU14 | 1.17 | ![]() ![]() ![]() | ||||
The crafting recipe now uses 4 planks and 2 sticks instead of 6 sticks. | |||||||
"Fence" has now been renamed to "Oak Fence". | |||||||
TU27 | CU15 | 1.18 | ![]() ![]() | ||||
TU54 | CU44 | 1.52 | Patch 24 | Patch 4 | Fences will now connect to the solid back sides of stairs. | ||
1.90 | ![]() ![]() ![]() ![]() ![]() | ||||||
New Nintendo 3DS Edition | |||||||
0.1.0 | ![]() ![]() ![]() ![]() ![]() |
First screenshot of nether brick fences released by Jeb. The nether brick fences are visible on the side of the nether fortress bridges.
Issues[edit]
Issues relating to "Fence" are maintained on the bug tracker. Report issues there.
Trivia[edit]
- If a carpet is placed on top of a fence, a player can jump onto the carpet, while mobs will not (except rabbits).
- Getting hit by someone else (or shooting yourself with a Punch enchanted bow while sprinting forwards) while in midair can cause the knockback to propel you over a fence you would not be able to jump over normally.
- Contrary to popular belief, 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.
- Projectiles will be stuck in the collision box of the fence and remain there if shot from upward.
Gallery[edit]
Pressure plates on fences, used to create tables.
Naturally occurring fences in a village.
Three nether brick fences in the pre-release of beta 1.8. Some nether bricks can also be seen in the background.
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).