Java Edition 1.18.2 item

Iron Bars

Iron Bars identifiers, stack size and item properties for Java Edition 1.18.2. Use this version-pinned reference when comparing releases or writing commands.

Iron Bars — representative authorized Minecraft assetIron Bars
Image source: Minecraft Wiki
Namespaced ID
minecraft:iron_bars
Numeric ID
295
Stack size
64

Version-specific item details

In Java Edition 1.18.2, this item uses the internal name minecraft:iron_bars and numeric protocol ID 295. It stacks to 64.

Command reference

/give @p minecraft:iron_bars 64
/give
Gives an item to the selected target.
@p
The nearest player to where the command runs.
minecraft:iron_bars
The version-pinned textual identifier for Iron Bars.
64
The number of items to give.

Modern namespaced commands normally use the textual identifier. Numeric IDs are shown for data comparison and protocol work, not as a recommendation for modern command syntax.

Compare supported versions

Versions where this identifier does not exist return a real 404. Numeric IDs are protocol data and can change between releases.

Related content