Original pixel art Diamond Sword icon
Minecraft Java Item ID

Diamond Sword ID

Diamond Sword is a high-tier weapon dealing 7 damage per hit. It is crafted from 2 diamonds and a stick and has 1561 durability.

✓ Verified for Java Edition 26.2
Namespaced item ID minecraft:diamond_sword

Diamond Sword Item Facts

CategoryCombat
Maximum stack1
Available inSurvival and Creative
Historical numerical ID276

Historical numerical ID: Reviewed for Java Edition 1.12.2 and earlier.

Give Command for Diamond Sword

Copy the current Java Edition command, or open the generator to change the player and quantity.

/give @p minecraft:diamond_sword 1

Customize this command → Open in Enchantment Builder → View crafting recipe →

Historical command for Java 1.12.2 and earlier

Modern namespaced IDs are recommended. This numerical form is only for old Java releases.

/give @p 276 1

Give command syntax by version

Java 1.13+
/give @p minecraft:diamond_sword 1
Namespaced ID (current format)
Java 1.8–1.12.2
/give @p 276 1 0
Numerical ID + data value
Bedrock Edition
/give @p minecraft:diamond_sword 1
Same namespaced ID (namespace optional)

Rows appear only when the underlying value is verified: the Java 1.8–1.12.2 row requires a reviewed historical numerical ID, and the Bedrock row appears only when this exact namespaced ID exists in the Bedrock registry.

How to Get Diamond Sword

Crafting Recipe

Diamond
Diamond
Stick

Crafting table recipe — makes 1 × Diamond Sword.

More Ways to Get It

Craft a Diamond Sword with two diamonds and one stick at a Crafting Table. It is also the base weapon required when upgrading to a Netherite Sword.

  1. Collect two diamonds and one stick.
  2. Use a Crafting Table to create the sword.
  3. Enchant it or upgrade it at a Smithing Table when you are ready for netherite gear.

Prefer commands? Jump back to the give command matrix above to get Diamond Sword instantly.

Diamond Sword Tool and Armor Stats

Max durability1561 uses
Repair withDiamond
EnchantableYes

Diamond Sword Guide: Crafting, Upgrading, and Commands

Quick answer: The modern Java item ID is minecraft:diamond_sword. Craft it from two diamonds and one stick, then keep it if you plan to upgrade that exact sword to netherite later.

Craft now or save diamonds?

A diamond sword is a straightforward combat upgrade, but it competes with other early diamond uses. A pickaxe generally creates more progression options because it can collect obsidian. Once you have mining covered, a sword is a reliable next craft for melee-focused survival play.

The sword is also the base item for a Netherite Sword. Enchanting it before an upgrade can be worthwhile if you intend to keep the same weapon rather than replace it.

Use the correct command for your game

For current Java Edition, copy the namespaced command matrix above or open the generator with this sword preselected. Do not mix a current namespaced ID with the old numerical command format; those formats belong to different Java version eras.

On a multiplayer server, a command only works when the sender has the required permission. If the item does not appear, test the basic one-item command first before adding any server-specific command logic.

Diamond Sword Command Examples

  • Give 1 to nearest player: /give @p minecraft:diamond_sword 1
  • Give 1 to yourself: /give @s minecraft:diamond_sword 1
  • Give to a specific player: /give PlayerName minecraft:diamond_sword 1
  • Clear from inventory: /clear @p minecraft:diamond_sword

Compatible Enchantments for Diamond Sword

Diamond 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 Diamond Sword Used For?

Diamond

Two diamonds are needed for the sword recipe.

Stick

One stick completes the crafting recipe.

Shield

Use a shield in the off-hand for more defensive melee combat.

Diamond Sword FAQ

What is the item ID for Diamond Sword?

The item ID for Diamond Sword is minecraft:diamond_sword. Java Edition commands such as /give, /clear, and /setblock use this namespaced ID.

What is the numerical ID for Diamond Sword?

Diamond Sword has the historical numerical ID 276, used in Java Edition 1.12.2 and earlier. Current versions use minecraft:diamond_sword instead.

How do I give myself Diamond Sword in Minecraft?

Open the chat window and run /give @p minecraft:diamond_sword 1 to give the nearest player one Diamond Sword. Replace @p with a player name to target someone else.

How many Diamond Sword can stack in one slot?

Diamond Sword stacks up to 1 per inventory slot.

How do you craft Diamond Sword?

Diamond Sword is crafted on a crafting table with 2 diamonds and 1 stick, which yields 1 Diamond Sword.

Can a diamond sword be upgraded to netherite?

Yes. Use a smithing table with the diamond sword, a netherite ingot, and the required Netherite Upgrade Smithing Template for your current Java Edition workflow.

How durable is Diamond Sword?

Diamond Sword has a maximum durability of 1561, so it survives 1561 uses before breaking.

Sources and Data Review

Item facts were reviewed for Java Edition 26.2 on .

Related Combat

Item ID: minecraft:diamond
Item ID: minecraft:stick
Item ID: minecraft:netherite_sword
Item ID: minecraft:shield
Item ID: minecraft:enchanting_table
Original pixel art Bow icon
Item ID: minecraft:bow
Item ID: minecraft:crossbow
Item ID: minecraft:diamond_helmet