Trying to call an event on player death

I mess with player attributes in my datapack, but death resets those- I need to call the function that reassigns them whenever a player dies, but I don't see an advancement for just flat "player died"

Continue to help post