Damage type check in advancements

I am trying to make it so that my advancement is only triggered by mob attacks or player attacks and not by let's say cacti. I thought I could just check for the damage type and say that it would have to be mob_attack or player_attack, but that does not seem to work and misode doesn't use them either there?

Continue to help post