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

entity_hurt_player advancement trigger is triggered for non-entity damage but entity_killed_player is not

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 17w17b, 1.15.2, 20w06a, 20w07a, 20w21a, 1.16 Pre-release 5, 1.16.1, 20w27a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Advancements

      Description

      The bug

      The advancement trigger entity_hurt_player is triggered when the player receives non-entity damage (like fire) as well but the trigger entity_killed_player is only triggered if the player is killed by an entity.

      Note: If both triggers should trigger for non-entity damage as well it might be good to rename them to something like player_being_hurt and player_being_killed.

      How to reproduce

      1. Download the attached datapack MC-116922.zip and place it in the datapacks directory of your world folder
      2. Load the world (or if it's already opened run /reload)
      3. Take fire damage
        → You get the advancement "Taking damage"
      4. Die because of fire damage
        → You do not get the advancement "Being killed"

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            marcono1234 [Mod] Marcono1234
            Votes:
            10 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: