Ring of Return is a pretty small mod that will allow you to create yourself a ring that allows you to return home. To be precise, you can return directly to your spawn location.
Ring of Return Mod for Minecraft 1.16.3 / 1.15.2
Indeed, the ring is an extremely convenient option to return home within a few seconds. Now, in any difficult situation or whenever necessary, you can return to your bed.