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

advancements can't detect instant potion effects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21
    • None
    • Unconfirmed
    • (Unassigned)

      I'm trying to check when a player recieves an instant damage or harming effect, and cancel the effect before it triggers.
      I'm using the effects changed advancement in a datapack, and I can cancel the effect if the origin is a command (the advancement triggers) however if i use any potion to apply the effect, the advancement does not trigger, and i can't cancel it. 

      I suppose this is because splash potions must use a special calculation to apply reduced healing or damage... but i can't see, why it could'nt work with normal drinkable potions

      (Yes i need this for players who turn into zombies)

       

      I attached the relevant files from my datapack.

            Unassigned Unassigned
            LeoTheRedShifter LeoTheRedShifter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: