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

Custom Potion effects don't override Potion tag

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Works As Intended
    • Affects Version/s: Minecraft 15w39a, Minecraft 15w39b, Minecraft 15w42a
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 7
      Java 8
    • Confirmation Status:
      Community Consensus

      Description

      I have noticed that when making a custom potion, the custom effects don't override the potion's default effect. E.g., when I use the command below, I get a potion that has invisibility as well as blindness, but as I customized it, it should only have blindness.
      Here's the command:

      /give @p minecraft:splash_potion 1 0 {CustomPotionEffects:[{Id:15,Amplifier:0,Duration:200}],Potion:"minecraft:invisibility"}
      

      In 1.8, custom potion effects did override the default potion effect (which back then was provided with the item id, not the Potion tag).

      This potion would only give you speed, but not fire resistance in 1.8:

      /give @p minecraft:potion 1 8227 {CustomPotionEffects:[{Id:1,Amplifier:0,Duration:200}]}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                grum [Mojang] Grum (Erik Broes)
                Reporter:
                IndiePhunq Sam Tooch
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK:

                  Potential Duplicates