MineToolsminetools.cn · Minecraft Java Tools

Iron Spear command

minecraft:iron_spearEnglish name Iron Spear

Iron Spear (minecraft:iron_spear) can't be stacked; only 1 can go in a slot.Durability: 250.Attack Damage: 3.Here are common commands for giving, clearing, and checking. Click "Copy" to use one.

Common Commands

Give the nearest player 1 Iron Spear
/give @p minecraft:iron_spear
Give all players
/give @a minecraft:iron_spear
Gold Name
/give @p iron_spear[custom_name={translate:"item.minecraft.iron_spear",color:"gold",italic:false}]

To use a name of your own, replace the translate part with plain text

With Enchantments (Max Level)
/give @p iron_spear[enchantments={sharpness:5,lunge:3,unbreaking:3}]
Indestructible (doesn't lose durability)
/give @p iron_spear[unbreakable={}]
Clear all Iron Spear from the player
/clear @p minecraft:iron_spear
Check if holding Iron Spear
/execute as @a if items entity @s weapon.mainhand minecraft:iron_spear run title @s actionbar ["",{text:"✔ ",color:"green"},{translate:"item.minecraft.iron_spear"}]
Edit in the Item Generator (name, enchantments, attributes, ...)

Basic Information

Item ID
minecraft:iron_spear
Max Stack Size
1
Durability
250
Attack Damage
3
Attack Speed
1.05
Enchantability
14
Type
Item

Enchantments for Iron Spear

Similar Items

Items Made of the Same Material

Data from the official Minecraft Java 26.3 data. All commands have passed the 26.3 syntax check.