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

tipped arrows effect applies after player_hurt_entity triggers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.16.4
    • None
    • Unconfirmed
    • Advancements

      Setup:

      Advancement with player_hurt_entity criteria, runs function when triggered

      This function checks, if the hurt entity (I test for HurtTime:10s) has potion effects.

       

      Issue:

      The function always says that the entity has no potion effect, even when using arrows with effects.

      Note: I didn't use tipped arrows in the inventory but changed the NBT data while the arrow was in the air. I guess that makes no difference but I wanted to mention it here in case it matters.

      If I check for the same thing in my tick function, it works, meaning the effects do work and get applied to the entity in the same tick.

      The advancement reward function seems to run before the potion effects get applied, although both happens in the same tick.

        1. mc-209797.png
          mc-209797.png
          142 kB
        2. mc-209797.zip
          2 kB

            Unassigned Unassigned
            Braincoke Braincoke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: