Start on one heart, gain a heart every time you die. If you die at 10 hearts you are permanently dead.
Use `/scoreboard players set 0` to reset back to 1 heart
I am new to Datapacks, if you encounter an issue DM me on discord @tilj
Inspired by the X Life series on YouTube