mojira.dev
MC-76059

NBT tags in commands don't support named enchantment ids

When using a command such as give or replaceitem, named enchantment ids don't work and numerical ids must be used; however the enchant command does support named ids.

/give @p diamond_pickaxe 1 0 {ench:[{id:minecraft:fortune,lvl:3}]}
Will give a diamond pickaxe with Protection III.

Linked issues

Comments 1

Thank you for your report.
However, your ticket has been resolved as a duplicate.

This issue has been linked to the original bugreport: MC-61041. You can find or add further information on that report.
Please search before reporting any bugs, as it's likely that one exists already.

Brandon Schumann

(Unassigned)

Unconfirmed

Minecraft 1.8.2-pre1

Retrieved