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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 17w17b, 1.15.2, 20w06a, 20w07a, 20w21a, 1.16 Pre-release 5, 1.16.1, 20w27a, 1.17.1, 23w03a, 1.20.4, 24w09a
    • Confirmed
    • Advancements
    • Low
    • Platform

      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"

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            18 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              CHK: