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

Advancement "entity_hurt_player" not working properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 23w03a
    • None
    • Unconfirmed
    • (Unassigned)

      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...

            Unassigned Unassigned
            SozoKa SozoKa
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: