Honestly do not know much about modding.. But because no-one is answering I'd like to. I think it might be possible. Maybe look into the death system or something? You get teleported back to the bed, so maybe you can create some instances of it...? I really don't know man, good luck!