sharpness 1000 sword command code example
Example 1: sharpness 1000 sword command
/give @p diamond_sword{Unbreakable:1,Enchantments:[{id:sharpness,lvl:1000}]}
Example 2: sharpness 1000 sword command
/give @p minecraft:diamond_sword{Enchantments:[{id:"minecraft:sharpness", lvl:1000}]} 1