mojira.dev
MC-61954

Cannot use the new enchantment/effect IDs in ench/CustomPotionEffects NBT tags

Steps to reproduce

Attempt to run the following command:

/give @p diamond_pickaxe 1 0 {ench:[1:{id:"minecraft:efficiency",lvl:3}]}

The pickaxe will be enchanted, but with the 'default' enchantment, Protection.

I have attempted other things like not putting in quote marks or not writing 'mine craft:' but none of those work either.

For potion effects, try the following command:

/give @p potion 1 8267 {CustomPotionEffects:[1:{Id:"mine craft:jump_boost",Amplifier:1,Duration:200}]}

This will give you a Diffuse Potion with No Effects.

Again I have tried other formats with this command too.

So to conclude, NBT tags do not support named IDs for enchantments and effects despite supporting them for blocks/items.

Linked issues

Comments 2

Naor Volkovich

Searge already said that they didn't add this feature yet... It will be possible in the future

Dlawso the Really Lucky Rabbit

Another thing is that you have a space in between mine and craft.

Here is Searge's comment from MC-61041:

Right now only commands support the named ids. NBT tags are updated later and still use numerical ids.

Atom clark

(Unassigned)

Unconfirmed

Minecraft 14w28a, Minecraft 14w28b

Retrieved