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

player_hurt_entity advancement trigger doesn't work when hitting armor stands

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20 Pre-release 1, 1.20 Pre-release 6, 1.20.4, 24w03b
    • None
    • Confirmed
    • (Unassigned)

      Expected behavior
      the trigger activating whenever the player hit's an entity.

      Actual behavior
      some entities, namely armor stands, bypass this rule

      Steps to reproduce
      1. summon armor stand
      2. add this advancement into a datapack:

      {
          "criteria": {
            "requirement": {
              "trigger": "minecraft:player_hurt_entity",
              "conditions": {
                "entity": {
                }
              }
            }
          },
          "rewards": {
            "function": "SOME FUNCTION"
          }
        }

      3. notice the function doesn't activate for armor stands but does for other entities with hitboxes{}

        1. 2023-11-30_20-54-41.mp4
          751 kB
          [Helper] Jiingy
        2. 2023-12-03_00-02-36.mp4
          2.54 MB
          [Helper] Jiingy

            Unassigned Unassigned
            pauloalbert paulo khayat
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: