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

Executing if certain potion in inventory.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.13
    • None
    • {color:#333333}Java client on Windows 10 PC{color}
    • Unconfirmed

      There are two different types of potions for each potion even water. One can be tested for one can't and they both look identical. One type is by using the give command: 

      /give @p potion{Potion:fire_resistance}

      The other is getting it from the creative inventory, brewing it, or if using water, filling it up with a water block.

      /execute if entity @p[nbt={Inventory:[{id:"minecraft:potion",tag:{Potion:fire_resistance}}]}]

      This detects only the ones that have to be produced by the command. The brewed can't be found.

            Unassigned Unassigned
            Rivero Alex Smith
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: