Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-83471

"CustomPotionEffects" Inoperable with Splash / lingering Potions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 15w34a
    • Minecraft 15w31a, Minecraft 15w31c, Minecraft 15w32a, Minecraft 15w32b, Minecraft 15w32c, Minecraft 15w33a, Minecraft 15w33b, Minecraft 15w33c
    • None
    • Confirmed

      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"}

            grum [Mojang] Grum (Erik Broes)
            skylinerw [Mod] Skylinerw
            Votes:
            21 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: