Mojira Archive
MC-262511

player_hurt_entity advancement trigger doesn't work when hitting armor stands

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{}

Duplicate

paulo khayat

2023-05-10, 01:53 PM

2024-02-20, 11:29 AM

2024-02-20, 11:24 AM

4

4

Confirmed

(Unassigned)

1.20 Pre-release 1, 1.20 Pre-release 6, 1.20.4, 24w03b

-