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

Advancement trigger player_hurt_entity is only triggered for mobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.12 Pre-Release 5, 20w07a, 1.16.1, 1.16.4, 21w11a, 1.17.1, 1.20 Pre-release 1, 1.20 Pre-release 6, 1.20.4, 24w03b
    • Confirmed
    • Advancements, Data Packs, Entities
    • Low
    • Platform

      The bug

      The name of the advancement trigger player_hurt_entity suggests that it is triggered when the player damages any entity. Instead it is only triggered when the player hurts a mob.

      How to reproduce

      1. Download the attached datapack MC-117824.zip and place it in the datapacks folder of your world
      2. Load the world
      3. Hit for example an armor stand or a boat
        The advancement is not made
      4. Hit for example a pig
        The advancement is made

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

              Created:
              Updated:
              CHK: