I was hoping to find an event that happened when a player corpse is removed from the game, either due to decay or due to all of the items in its inventory being removed. It doesn't seem like an event is fired for those two cases.
The on_preplayer_mined_item and on_player_mined_entity events are fired IFF the corpse is actually mined, but that's only 1 of 3 cases for how a corpse will be removed from the game, so it's not a complete solution. If another solution is available, I'd love to know.
on_corpse_removed (or similar)
Re: on_corpse_removed (or similar)
Ok, I added the following for 0.16:
0.16 changelog wrote: Added on_character_corpse_expired event.
Added LuaEntity::character_corpse_player_index, character_corpse_tick_of_death, and character_corpse_death_cause read/write.
If you want to get ahold of me I'm almost always on Discord.
Re: on_corpse_removed (or similar)
Wonderful news! Yet another reason to look forward to 0.16!