This datapack adds decreasing max HP depended on play time. On death the player goes into a rotating queue.
I think it works. (it is coded in that the queue is 3 players)