mojira.dev
MC-71422

Effect name (instead of ID) can't be used in NBT tags

This works..

/give @p minecraft:potion 64 16385 {CustomPotionEffects: [{Id:23, Amplifier:3, Duration:1000000}], display: {Name: "Sports drink"}}

but this doesn't..

/give @p[team=blue] minecraft:potion 64 16385 {CustomPotionEffects: [{Id:"minecraft:saturation", Amplifier:3, Duration:1000000}], display: {Name: "Sports drink"}}

You can see all available effect names when pressing "/effect @p <TAB>".

Linked issues

Comments 5

duplicate of MC-61041
similar issue between enchantments and potion effects

How is this report a duplicate of MC-61041? This report here is about not being able to use names instead of ids — that one is about getting the wrong enchantment (and it's closed).

@unknown added a comment - 10/Jul/14 12:18 PM

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

the enchantmet and effect names are the same issue, using the name in the tag is not supported, only commands

Well, why not keep this bug report open until they've fixed it?

Because it's no bug.

Josh Miller

(Unassigned)

Unconfirmed

Minecraft 1.8

Retrieved