Mojira Archive
MC-259313

Advancement "entity_hurt_player" not working properly

Create an advancement (ex: minecraft:entity_hurt_player):

{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:entity_hurt_player"
    }
  },
  "rewards": {
    "function": "minecraft:entity_hurt_player"
  }
}

Create a function (ex: minecraft:entity_hurt_player):

say Entity Hurt Player
advancement revoke @s only minecraft:entity_hurt_player

Now, if you take damage from something other than an entity like a cactus, the advancement will trigger and activate the function...

Duplicate

SozoKa

2023-01-22, 05:08 PM

2023-11-10, 06:15 AM

2023-11-10, 06:10 AM

1

0

Unconfirmed

(Unassigned)

23w03a

-