{{Infobox block
| image = Iron Bars (EW).png
| extratext = [[#Renders|View all renders]]
| transparent = Yes
| light = No
| tool = wooden pickaxe
| renewable = Yes
| stackable = Yes (64)
| flammable = No
| lavasusceptible = No
| waterloggable = Yes
}}
'''Iron bars''' are [[block]]s that serve a similar purpose to [[glass pane]]s, but made of [[iron ingot]]s instead of [[glass]].

== Obtaining ==
=== Breaking ===
Iron bars can be mined using any pickaxe. If mined without a pickaxe, it drops nothing.

{{breaking row|horizontal=1|Iron Bars|Pickaxe|Wood}}

=== Natural generation ===
Iron bars can generate in [[stronghold]]s, [[woodland mansion]]s, [[savanna]] [[village]]s, [[desert]] villages, [[plains]] villages, [[igloo]] basements, [[ruined portal]]s, and [[trail ruins]].

In [[the End]], there are two [[end spike]]s that have iron bars around their [[end crystal]]s.

{{Block distribution}}

=== Crafting ===
{{Crafting
|A1= Iron Ingot
|B1= Iron Ingot
|C1= Iron Ingot
|A2= Iron Ingot
|B2= Iron Ingot
|C2= Iron Ingot
|Output= Iron Bars,16
|type= Decoration block
}}
Iron bars are not a source of iron. Once crafted, iron bars cannot be [[smelt]]ed into [[iron nugget]]s or ingots.

=== Post-generation ===
Iron bars regenerate on the [[end spike]]s whenever the [[ender dragon]] is respawned.

== Usage ==
[[File:Arrow Slits.png|thumb|Iron bars used to create arrow slits.]]
As with [[glass pane]]s and [[fence]]s, iron bars can be used to create narrow slits when placed between a [[door]] and a solid block. Mobs can see through and attack through these gaps, and arrows may be shot through them. Also as with fences and glass panes, arrows cannot be shot through iron bars themselves.

[[Endermen]] seen through iron bars do not become angry. The [[ender dragon]] cannot destroy iron bars (some of the [[end crystal]]s are protected by them), which makes them a useful material in [[the End]].

=== Placement ===
Iron bars can be placed in much the same way as [[fence]]s or [[glass pane]]s. If no solid block is adjacent to the bars, they have appearance of a slim, tall column. If something is placed next to iron bars, they appear either flat, [[File:Curve.png|text-top]] shaped, [[File:T junction.png|text-top]] shaped or [[File:Cross.png|text-top]] shaped, depending on the blocks surrounding it.

=== Curing ===
Iron bars speed up the curing process of [[zombie villager]]s.

== Sounds ==
{{Sound table/Block/Metal}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Iron Bars
|spritetype=block
|nameid=iron_bars
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Iron Bars
|spritetype=block
|nameid=iron_bars
|id=101
|foot=1}}

=== Block states ===
{{see also|Block states}}

{{/BS}}

== History ==
{{For|a more in-depth breakdown of changes to repeater textures and models, including a set of renders for each state combination|Iron Bars/Asset history}}
{{HistoryTable
|{{HistoryLine|java beta}}
|{{HistoryLine||July 11, 2011|link=http://www.minecraftforum.net/topic/467338-18-updates-ravines-strongholds/page__st__100__p__6173261#entry6173261|[[Notch]] revealed two new screenshots of a [[stronghold]] (in two different brightness settings) where the bars can be clearly seen alongside other common stronghold [[block]]s. The [[light]]ing differences have been explained a bit (though not necessarily completely correctly) by a user on the [[Minecraft Forum|forums]].}}
|{{HistoryLine||1.8|dev=Pre-release|[[File:Iron Bars (unconnected) JE1 BE1.png|36px]] [[File:Iron Bars (N) JE1 BE1.png|36px]] [[File:Iron Bars (E) JE1 BE1.png|36px]] [[File:Iron Bars (S) JE1 BE1.png|36px]] [[File:Iron Bars (W) JE1 BE1.png|36px]] [[File:Iron Bars (NS) JE1 BE1.png|36px]] [[File:Iron Bars (EW) JE1 BE1.png|36px]] [[File:Iron Bars (NE) JE1 BE1.png|36px]] [[File:Iron Bars (ES) JE1 BE1.png|36px]] [[File:Iron Bars (SW) JE1 BE1.png|36px]] [[File:Iron Bars (NW) JE1 BE1.png|36px]] [[File:Iron Bars (ESW) JE1 BE1.png|36px]] [[File:Iron Bars (NSW) JE1 BE1.png|36px]] [[File:Iron Bars (NEW) JE1 BE1.png|36px]] [[File:Iron Bars (NES) JE1 BE1.png|36px]] <br/>[[File:Iron Bars (texture) JE1 BE1.png|32px]] Added iron bars.
|[[File:Iron Bars (connected vertical) JE1.png|32px]] Iron bars currently do not render their side edge faces. Also, their top and bottom faces are correctly not rendered when connected to other [[block]]s.}}
|{{HistoryLine|java}}
|{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 6|The breaking time for iron bars is now greatly reduced, and depends on the [[tiers|pickaxe's material]].}}
|{{HistoryLine||1.4.2|dev=12w32a|[[Zombie villager]]s can now be cured. Putting iron bars close to the zombie villager helps speed up the process.}}
|{{HistoryLine||1.7.2|dev=13w41a|Iron bars now connect to [[glass]], [[stained glass]], and [[glass pane]]s.}}
|{{HistoryLine||1.8|dev=14w03a|[[File:Iron Bars 14w03a.png|32px]] Iron bars now appear completely opaque.}}
|{{HistoryLine|||dev=14w03b|Iron bars now render as normal again.<ref>{{bug|MC-44990}}</ref>}}
|{{HistoryLine|||dev=14w10a|[[File:Iron Bars (connected vertical) JE2.png|32px]] Iron bars on top of one another now display a texture at the top/bottom joint of the two [[block]]s.<ref>{{bug|MC-50349||Iron Bars and glass panes are rendered incorrectly when connected}}</ref>}}
|{{HistoryLine||1.9|dev=15w31a|[[File:Iron Bars (unconnected) JE2.png|36px]] Iron bars without any connecting blocks are now 2x2 pixels in footprint (rather than [[File:Iron Bars (unconnected) JE1 BE1.png|36px]].)
|[[File:Iron Bars (NESW) JE2.png|36px]] [[File:Iron Bars (N) JE2.png|36px]] [[File:Iron Bars (E) JE2.png|36px]] [[File:Iron Bars (S) JE2.png|36px]] [[File:Iron Bars (W) JE2.png|36px]] [[File:Iron Bars (NS) JE2.png|36px]] [[File:Iron Bars (EW) JE2.png|36px]] [[File:Iron Bars (NE) JE2.png|36px]] [[File:Iron Bars (ES) JE2.png|36px]] [[File:Iron Bars (SW) JE2.png|36px]] [[File:Iron Bars (NW) JE2.png|36px]] [[File:Iron Bars (ESW) JE2.png|36px]] [[File:Iron Bars (NSW) JE2.png|36px]] [[File:Iron Bars (NEW) JE2.png|36px]] [[File:Iron Bars (NES) JE2.png|36px]] The outside edges of iron bars now have textures.
|The tallest obsidian pillars had iron bars around their end crystals, until [[Java Edition 16w07a|16w07a]].
|The [[ender dragon]] can no longer destroy iron bars.}}
|{{HistoryLine|||dev=15w43a|Iron bars now generate within [[igloo]] basements.}}
|{{HistoryLine|||dev=15w46a|Iron bars center beams now have both edge side texture, which has changed the textures from [[File:Iron Bars (E) JE2.png|36px]] [[File:Iron Bars (S) JE2.png|36px]] to [[File:Iron Bars (E) JE3.png|36px]] [[File:Iron Bars (S) JE3.png|36px]].}}
|{{HistoryLine|||dev=16w07a|Iron bars have been removed from [[end spike]]s.}}
|{{HistoryLine|||dev=pre1|Two of the shorter, thinner end spikes in [[the End]] now have a cage of iron bars around their [[end crystal]]s.}}
|{{HistoryLine||1.11|dev=16w39a|Iron bars now generate in [[woodland mansion]]s.}}
|{{HistoryLine||1.12|dev=17w15a|Iron bars now connect to the solid back sides of [[stairs]].}}
|{{HistoryLine||1.13|dev=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this [[block]]'s numeral ID was 101.}}
|{{HistoryLine|||dev=18w10c|[[Water]] can now be placed on the same block as iron bars.}}
|{{HistoryLine||1.14|dev=18w43a|[[File:Iron Bars (unconnected).png|36px]] [[File:Iron Bars (N) JE3 BE2.png|36px]] [[File:Iron Bars (E) JE4 BE2.png|36px]] [[File:Iron Bars (S) JE4 BE2.png|36px]] [[File:Iron Bars (W) JE3 BE2.png|36px]] [[File:Iron Bars (NS) JE3 BE2.png|36px]] [[File:Iron Bars (EW) JE3 BE2.png|36px]] [[File:Iron Bars (NE) JE3 BE2.png|36px]] [[File:Iron Bars (ES) JE3 BE2.png|36px]] [[File:Iron Bars (SW) JE3 BE2.png|36px]] [[File:Iron Bars (NW) JE3 BE2.png|36px]] [[File:Iron Bars (ESW) JE3 BE2.png|36px]] [[File:Iron Bars (NSW) JE3 BE2.png|36px]] [[File:Iron Bars (NEW) JE3 BE2.png|36px]] [[File:Iron Bars (NES) JE3 BE2.png|36px]] <br>{{InvSprite|Iron Bars}}  The textures of iron bars have been changed.}}
|{{HistoryLine||1.14.3|dev=pre3|[[Torch]]es can now be placed on iron bars.}}
|{{HistoryLine||1.16|dev=20w15a|[[Wall]]s now connect to the bottom and sides of iron bars.}}
|{{HistoryLine|||dev=20w16a|Iron bars can now generate as part of [[ruined portal]]s.}}
|{{HistoryLine||1.20|dev=23w12a|Iron bars can now generate in [[trail ruins]].}}
|{{HistoryLine|pocket alpha}}
|{{HistoryLine||v0.8.0|dev=build 1|[[File:Iron Bars (unconnected) JE1 BE1.png|36px]] [[File:Iron Bars (N) JE1 BE1.png|36px]] [[File:Iron Bars (E) JE1 BE1.png|36px]] [[File:Iron Bars (S) JE1 BE1.png|36px]] [[File:Iron Bars (W) JE1 BE1.png|36px]] [[File:Iron Bars (NS) JE1 BE1.png|36px]] [[File:Iron Bars (EW) JE1 BE1.png|36px]] [[File:Iron Bars (NE) JE1 BE1.png|36px]] [[File:Iron Bars (ES) JE1 BE1.png|36px]] [[File:Iron Bars (SW) JE1 BE1.png|36px]] [[File:Iron Bars (NW) JE1 BE1.png|36px]] [[File:Iron Bars (ESW) JE1 BE1.png|36px]] [[File:Iron Bars (NSW) JE1 BE1.png|36px]] [[File:Iron Bars (NEW) JE1 BE1.png|36px]] [[File:Iron Bars (NES) JE1 BE1.png|36px]] <br>[[File:Iron Bars (texture) JE1 BE1.png|32px]] Added iron bars.}}
|{{HistoryLine||v0.9.0|dev=build 1|Iron bars now spawn naturally in [[stronghold]]s and [[village]]s.}}
|{{HistoryLine|pocket}}
|{{HistoryLine||1.0.0|dev=alpha 0.17.0.1|Iron bars now generate on top of [[end spike]]s.
|Iron bars now generate within [[igloo]] basements.}}
|{{HistoryLine||1.1.0|dev=alpha 1.1.0.0|Iron bars now generate in [[woodland mansion]]s.}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.2.0|dev=beta 1.2.0.2|[[File:Iron Bars (unconnected) BE2.png|36px]] Iron bars without any connecting [[block]]s are now 2x2 pixels in footprint (rather than [[File:Iron Bars (unconnected) JE1 BE1.png|36px]].) {{check version|At least up to 1.2 was cross-shaped, but at 1.9 it is already stick-shaped.}}}}
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|[[File:Iron Bars (unconnected) BE2.png|36px]] [[File:Iron Bars (N) JE3 BE2.png|36px]] [[File:Iron Bars (E) JE4 BE2.png|36px]] [[File:Iron Bars (S) JE4 BE2.png|36px]] [[File:Iron Bars (W) JE3 BE2.png|36px]] [[File:Iron Bars (NS) JE3 BE2.png|36px]] [[File:Iron Bars (EW) JE3 BE2.png|36px]] [[File:Iron Bars (NE) JE3 BE2.png|36px]] [[File:Iron Bars (ES) JE3 BE2.png|36px]] [[File:Iron Bars (SW) JE3 BE2.png|36px]] [[File:Iron Bars (NW) JE3 BE2.png|36px]] [[File:Iron Bars (ESW) JE3 BE2.png|36px]] [[File:Iron Bars (NSW) JE3 BE2.png|36px]] [[File:Iron Bars (NEW) JE3 BE2.png|36px]] [[File:Iron Bars (NES) JE3 BE2.png|36px]] <br>{{InvSprite|Iron Bars BE}}  The textures of iron bars have been changed.}}
|{{HistoryLine||1.16.0|dev=beta 1.15.0.51|{{InvSprite|Iron Bars}} The [[inventory]] icon of iron bars has now been changed to match {{el|je}}'s.}}
|{{HistoryLine|||dev=beta 1.16.0.57|Iron bars can now generate as part of [[ruined portal]]s.}}
|{{HistoryLine|console}}
|{{HistoryLine||xbox=TU5|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Iron Bars (unconnected) JE1 BE1.png|36px]] [[File:Iron Bars (N) JE1 BE1.png|36px]] [[File:Iron Bars (E) JE1 BE1.png|36px]] [[File:Iron Bars (S) JE1 BE1.png|36px]] [[File:Iron Bars (W) JE1 BE1.png|36px]] [[File:Iron Bars (NS) JE1 BE1.png|36px]] [[File:Iron Bars (EW) JE1 BE1.png|36px]] [[File:Iron Bars (NE) JE1 BE1.png|36px]] [[File:Iron Bars (ES) JE1 BE1.png|36px]] [[File:Iron Bars (SW) JE1 BE1.png|36px]] [[File:Iron Bars (NW) JE1 BE1.png|36px]] [[File:Iron Bars (ESW) JE1 BE1.png|36px]] [[File:Iron Bars (NSW) JE1 BE1.png|36px]] [[File:Iron Bars (NEW) JE1 BE1.png|36px]] [[File:Iron Bars (NES) JE1 BE1.png|36px]]{{verify|Are these models accurate?}}<br>[[File:Iron Bars (texture) JE1 BE1.png|32px]] Added iron bars.
|Iron bars can be found in the Miscellaneous tab in the [[Creative inventory]].|Iron bars now generate in [[stronghold]]s.}}
|{{HistoryLine||xbox=TU9|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Iron bars now generate on the two tallest [[end spike]]s in [[the End]].}}
|{{HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|Moved iron bars to the "Building Blocks" tab in the Creative inventory.}}
|{{HistoryLine||xbox=TU25|xbone=CU14|ps3=1.17|psvita=1.17|ps4=1.17|Iron bars now connect to [[glass]], [[stained glass]], and [[glass pane]]s.}}
|{{HistoryLine||xbox=TU43|xbone=CU33|ps3=1.36|psvita=1.36|ps4=1.36|wiiu=Patch 13|switch=1.0.1|Iron bars now generate within [[igloo]] basements.}}
|{{HistoryLine||xbox=TU46|xbone=CU36|ps3=1.38|psvita=1.38|ps4=1.38|wiiu=Patch 15|switch=1.0.1|[[File:Iron Bars (connected vertical) JE2.png|32px]] Iron bars on top of one another now display a texture at the top/bottom joint of the two [[block]]s.|[[File:Iron Bars (unconnected) JE2.png|36px]] Iron bars without any connecting blocks are now 2x2 pixels in footprint (rather than [[File:Iron Bars (unconnected) JE1 BE1.png|36px]].)}}
|{{HistoryLine||xbox=TU54|xbone=CU44|ps3=1.52|psvita=1.52|ps4=1.52|wiiu=Patch 24|switch=1.0.4|Iron bars now generate in [[woodland mansion]]s.|Iron bars now connect to the solid back side of [[stairs]].}}
|{{HistoryLine||xbox=none|xbone=none|ps3=none|psvita=none|ps4=1.90|wiiu=none|switch=none|[[File:Iron Bars (unconnected) JE3.png|36px]] [[File:Iron Bars (N) JE3 BE2.png|36px]] [[File:Iron Bars (E) JE4 BE2.png|36px]] [[File:Iron Bars (S) JE4 BE2.png|36px]] [[File:Iron Bars (W) JE3 BE2.png|36px]] [[File:Iron Bars (NS) JE3 BE2.png|36px]] [[File:Iron Bars (EW) JE3 BE2.png|36px]] [[File:Iron Bars (NE) JE3 BE2.png|36px]] [[File:Iron Bars (ES) JE3 BE2.png|36px]] [[File:Iron Bars (SW) JE3 BE2.png|36px]] [[File:Iron Bars (NW) JE3 BE2.png|36px]] [[File:Iron Bars (ESW) JE3 BE2.png|36px]] [[File:Iron Bars (NSW) JE3 BE2.png|36px]] [[File:Iron Bars (NEW) JE3 BE2.png|36px]] [[File:Iron Bars (NES) JE3 BE2.png|36px]]{{verify|Are these models accurate?}}<br>{{InvSprite|Iron Bars}} The textures of iron bars have been changed.}}
|{{HistoryLine|new 3ds}}
|{{HistoryLine||0.1.0| [[File:Iron Bars (unconnected) BE2.png|36px]] [[File:Iron Bars (N) JE1 BE1.png|36px]] [[File:Iron Bars (E) JE1 BE1.png|36px]] [[File:Iron Bars (S) JE1 BE1.png|36px]] [[File:Iron Bars (W) JE1 BE1.png|36px]] [[File:Iron Bars (NS) JE1 BE1.png|36px]] [[File:Iron Bars (EW) JE1 BE1.png|36px]] [[File:Iron Bars (NE) JE1 BE1.png|36px]] [[File:Iron Bars (ES) JE1 BE1.png|36px]] [[File:Iron Bars (SW) JE1 BE1.png|36px]] [[File:Iron Bars (NW) JE1 BE1.png|36px]] [[File:Iron Bars (ESW) JE1 BE1.png|36px]] [[File:Iron Bars (NSW) JE1 BE1.png|36px]] [[File:Iron Bars (NEW) JE1 BE1.png|36px]] [[File:Iron Bars (NES) JE1 BE1.png|36px]] <br>[[File:Iron Bars (texture) JE1 BE1.png|32px]] Added iron bars.}}
}}

== Issues ==
{{Issue list}}

== Trivia ==
* {{IN|java}}, a 2×2 area made of iron bars can make a square-shaped hole big enough for the [[player]] and most [[mob]]s to fit through, but not [[rain]], [[water]], etc. that can be used as an easy entrance for an underwater house, and even an exit if [[piston]]s are used. [[Glass pane]]s work in the same way.
* If a [[sign]] or a [[painting]] is placed on iron bars, it appears to float in the air.
* Despite apparently being thin enough to do so, iron bars do not let a [[ghast]]'s explosion touch the block beneath them as long as the block is protected from other angles of the explosion affecting it.
* If an iron bar is connected to a block and a [[rail]] is placed on the block, the top texture of the iron bar disappears.
* While curing a [[zombie villager]], iron bars placed nearby speed up the healing process. The same happens with [[bed]]s, and both these things occur in the stereotypical prison cell.
* [[Arrow]]s cannot be shot through iron bars.
* Because iron bars are 1 block high, the player can normally jump over iron bars, unlike fences.

== Gallery ==
=== Renders ===
<gallery>
Iron Bars (unconnected).png|Unconnected
Iron Bars (N).png|North
Iron Bars (E).png|East
Iron Bars (S).png|South
Iron Bars (W).png|West
Iron Bars (NS).png|North and south
Iron Bars (EW).png|East and west
Iron Bars (NE).png|North and east
Iron Bars (ES).png|East and south
Iron Bars (SW).png|South and west
Iron Bars (NW).png|North and west
Iron Bars (ESW).png|East, south, west
Iron Bars (NSW).png|North, south, west
Iron Bars (NEW).png|North, east, west
Iron Bars (NES).png|North, east, south
Iron Bars (NESW).png|Connected from all sides
Iron Bars (unconnected) BE.png|Unconnected (''[[Bedrock Edition]]'')
</gallery>

=== Screenshots ===
<gallery>
Iron bars connected to stone bricks.png|The first image of the bars that [[Jens Bergensten]] posted, where the iron bars can be seen to the right of the center.
Ruins1.png|An image posted by [[Markus Persson|Notch]], here we can see iron bars to the left and right of the center.
Iron bars next to lava in village.png|Naturally occurring iron bars at a [[Village/Structure/Blueprints#Weaponsmith 1 3|blacksmith]]'s shop in a [[village]].
Cell 1.8.png|A jail cell made out of iron bars and [[cobblestone]].
Underwater iron bars.png|[[Water]] does not flow through the holes in the bars, but the [[player]] can fit inside them.
CagedEnderCrystal.png|Natural-generated iron bars found in [[the End]] surrounding an [[end crystal]].
Iron Bars 0.jpeg|A social media rendering of a [[zombie]] trying to pry through iron bars outside [[Kai]]’s house.<ref>{{tweet|Minecraft|1729541672348852510|Iron bars: 1  Zombies: 0|November 28, 2023}}</ref>
</gallery>

== References ==
{{reflist}}

== Navigation ==
{{Navbox iron}}
{{Navbox blocks|Decoration}}

[[Category:Manufactured blocks]]
[[Category:Generated structure blocks]]
[[Category:Natural blocks]]

[[cs:Železné mříže]]
[[de:Eisengitter]]
[[es:Barrotes de hierro]]
[[fr:Barreaux de fer]]
[[ja:鉄格子]]
[[ko:철창]]
[[lzh:鐵栏杆]]
[[nl:Tralies]]
[[pl:Żelazne kraty]]
[[pt:Grades de ferro]]
[[ru:Железная решётка]]
[[uk:Залізні ґрати]]
[[zh:铁栏杆]]
