Mojira Archive
MC-83471

"CustomPotionEffects" Inoperable with Splash / lingering Potions

Quite simply, the "CustomPotionEffects" does not work in with splash potions (note "splash_potion" is the new ID for splash potions as default potions no longer rely on the "Damage" value to determine both the effect and regular vs splash):

/give @p splash_potion 1 0 {CustomPotionEffects:[{Id:14,Duration:600}]}
/summon ThrownPotion ~ ~1 ~ {Potion:{id:splash_potion,tag:{CustomPotionEffects:[{Id:14,Duration:600}]}}}

In comparison to regular potions, in which the effect is applied correctly:

/give @p potion 1 0 {CustomPotionEffects:[{Id:14,Duration:600}]}

For reference, the following is the new "Potion" format that shifts away from using "Damage" values. This is for default potion effects, not custom ones:

/give @p splash_potion 1 0 {Potion:"minecraft:strength"}

Fixed

[Mod] Skylinerw

[Mojang] Grum (Erik Broes)

2015-07-29, 10:28 PM

2021-01-17, 01:42 AM

2015-08-18, 04:13 PM

21

15

Confirmed

Minecraft 15w31a - Minecraft 15w33cMinecraft 15w31a, Minecraft 15w31c, Minecraft 15w32a, Minecraft 15w32b, Minecraft 15w32c, Minecraft 15w33a, Minecraft 15w33b, Minecraft 15w33c

Minecraft 15w34a