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
duplicates 1
Comments 5
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
duplicate of MC-61041
similar issue between enchantments and potion effects