mojira.dev
MC-152522

entity_hurt_player trigger doesn't track falling_block damage

{
  "criteria": {
    "damage": {
      "trigger": "minecraft:entity_hurt_player",
      "conditions": {
        "damage": {
          "source_entity": {
            "type": "minecraft:falling_block"
          }
        }
      }
    }
  },
  "rewards": {
    "function": "..."
  }
}

From the given function you'd expect that when an anvil land on you it will fire a function but it does not.

Comments 3

Confirmed in 1.16.1
Tried either source_entity or direct_entity, not working as soon as it was add.

works for me in 1.20.1

Boomber

(Unassigned)

Community Consensus

Advancements

Minecraft 1.14.1, 1.16.1, 22w19a

Retrieved