Iron Sword Command Examples
- Give 1 to nearest player:
/give @p minecraft:iron_sword 1 - Give 1 to yourself:
/give @s minecraft:iron_sword 1 - Give to a specific player:
/give PlayerName minecraft:iron_sword 1 - Clear from inventory:
/clear @p minecraft:iron_sword
Compatible Enchantments for Iron Sword
Iron Sword can receive these enchantments from an enchanting table or anvil. Some of them are mutually exclusive; each enchantment page lists its incompatible partners.
What Is Iron Sword Used For?
Iron Ingot
Two ingots are used in the sword recipe.
Shield
Pair a sword with off-hand defense in melee combat.
Enchanting Table
Improve a sword with combat or loot enchantments.
Diamond Sword
Move to diamond gear when resources allow.
Iron Sword FAQ
What is the item ID for Iron Sword?
The item ID for Iron Sword is minecraft:iron_sword. Java Edition commands such as /give, /clear, and /setblock use this namespaced ID.
What is the numerical ID for Iron Sword?
Iron Sword has the historical numerical ID 267, used in Java Edition 1.12.2 and earlier. Current versions use minecraft:iron_sword instead.
How do I give myself Iron Sword in Minecraft?
Open the chat window and run /give @p minecraft:iron_sword 1 to give the nearest player one Iron Sword. Replace @p with a player name to target someone else.
How many Iron Sword can stack in one slot?
Iron Sword stacks up to 1 per inventory slot.
How do you craft Iron Sword?
Iron Sword is crafted on a crafting table with 2 iron ingots and 1 stick, which yields 1 Iron Sword.
Sources and Data Review
Item facts were reviewed for Java Edition 26.2 on .
