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

"CustomPotionEffects" Inoperable with Splash / lingering Potions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 15w31a, Minecraft 15w31c, Minecraft 15w32a, Minecraft 15w32b, Minecraft 15w32c, Minecraft 15w33a, Minecraft 15w33b, Minecraft 15w33c
    • Fix Version/s: Minecraft 15w34a
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: