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

Advancement player_hurt_entity do not detected Creaking

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21.4
    • None
    • Unconfirmed
    • (Unassigned)

      When a player hit the creaking, sound and particles are applied, but the advancement player_hurt_entity is not trigger.
      Creaking has Health:1f and is Invulnerable:0b. Its invulnerability is hardcodded.
      There is no damage, so it sounds "ok" to not get the interraction, but this leaves 0 way to detect the interraction with this mob.

      In a datapack:

      # advancement test:hurt
      {
        "criteria": {
          "player_hit_creaking": {
            "trigger": "minecraft:player_hurt_entity",
            "conditions": {
              "entity": {
                "type": "minecraft:creaking"
              }
            }
          }
        },
        "rewards": {
          "function": "test:hurt"
        }
      } 
      # function test:hurt
      advancement revoke @s only test:hurt
      say I hit a Creaking!
      

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

              Created:
              Updated:
              Resolved: