Minecraft – How to enchant and name items with /give using command blocks

minecraft-commandsminecraft-java-edition

How do you enchant and name items with /give using command blocks?

Best Answer

Add this to your command

{display:{Name:"Test Name"},ench:[{id:19,lvl:1}]}

It will give you a Item with the name "Test Name" with knockback 1.

You use this:

ench[{id:(enchantment_id,lvl:enchantment_level)}]

like that for enchantments. For names, use this:

display:{Name="Name of item"}

Remember to use curly brackets and colons inbetweeen.

If you just need the template for whatever reason, here it is pieced together:

/give @p (item id or minecraft:name) 1 0 {display:{Name:"(Name of item)"}, ench:[{id:(enchant id),lvl(1-sideways 8)},[{id:(enchant id),lvl(1-sideways 8)}, repeat enchant block...]}