Hardcore Revival Mod 1.18.2/1.16.5/1.12.2 will make your death in hardcore become worthy, for instance, while combating against a powerful scary boss. Features and all explanations are available here.

About Hardcore Revival
It’s a release that author worked to fix a dumb issue.
When a player dies, they will join a K.O state instead of falling down for good. At that moment, the Timer will begin to activate.
If you are a member of a team, you can manage to save that character. If you are successful, everything will be fine afterward.
Specifically, your teammate will receive a small amount of debuff and a strong appetite. Both of you can return to the battlefield after that.
Features
Grace K.O period will happen before final death at the place where your buddies can save you
But, friends are not included.
Position the gamer and press the Right mouse to help them.
K.O players can look around and chat. However, they cannot move, attack the enemy, or use any item.
Aside from Hardcore, it’s workable in Normal mode as well. explanations are available here.
Hardcore Revival is a miscellaneous mod. It requires Minecraft Forge.