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

Custom Potion effects don't override Potion tag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 15w39a, Minecraft 15w39b, Minecraft 15w42a
    • None
    • Windows 7
      Java 8
    • Community Consensus

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

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

              Created:
              Updated:
              Resolved:
              CHK: