The Curio of Undying mod is a small mod that, together with the Curios API, will add a new slot to your inventory in which you can place an immortality totem. Now you don’t have to carry a totem in your left hand, just place it in the slot and it will work and save you from death.
It is also enough just to press RMB with the totem so that it will automatically fit into the slot.
How to install the mod:
Install Forge or Fabric
Install Curios API
Install all additional mods if specified.
Download mod and copy to .minecraft / mods
In the launcher, run the forge or factory version of the game.