mojira.dev
MC-130110

/give doesn't give you enchanted items

Moderator Note

The ench NBT tag has been renamed to Enchantments, and the numeric short IDs are now strings.
1.12:

/give @p diamond_sword 1 0 {ench:[{id:16s,lvl:5s},{id:21s,lvl:3s}]}

1.13:

/give @p diamond_sword{Enchantments:[{id:"minecraft:sharpness",lvl:5s},{id:"minecraft:looting",lvl:3s}]}

If you give yourself a diamond sword with looting 3 using:

/give @p diamond_sword{ench:[{id:21,lvl:3}]}

It gives you a regular sword instead.

Related issues

Comments

migrated

In 1.13 you must use string argument like minecraft:frost_walker and NOT numerical id

Johnden

in 18w20c and prior it worked, unless there was a change that wasn't mentioned

tryashtar
{Enchantments:[{id:"minecraft:sharpness",lvl:5s}]}
Johnden

So there was a change, thanks tryashtar

migrated

OK, that worked. So how would you give multiple enchantments, I've been messing with it and just can't seem to get it right.

Trying to give a diamond shovel with the custom name "Sodbuster" having the enchantments of unbreaking, efficiency, and silk_touch

input the command: 
/give @p diamond_shovel{display:{Name:"\"Sodbuster\""},Enchantments:[{id:"minecraft.unbreaking",lvl:5s},{id:"minecraft.efficiency",lvl:1s},{id:"minecraft.silk_touch",lvl:3s}]} 1

It accepted the syntax but there's still something wrong.

migrated

AWESOME! Got it, Thank you SO MUCH!

Johnden

(Unassigned)

Unconfirmed

Minecraft 18w21a

Retrieved