Just a basic mod for Neoforge 1.21.1 servers to log death reasons and positions with a command anyone can use; /lastdeath that will always return the coordinates of their most recent death (server logs deaths in "death_logs.txt"), Villagers are logged too
added /deathbackup (player) (index #) command that restores inventories lost upon death only usable by ops. Indexes last 5 inventories per player (starts at 0 for latest always). can also /deathbackup list (player)