Woflje's Level Up HP Datapack
Woflje's Level Up HP datapack makes you start with 5 hearts (10 HP) which you can increase to a max of 20 hearts (40 HP) by killing mobs! The more hearts you have, the more mobs you have to kill for a level up.
This branch is for Minecraft 1.16.5, and can be installed by placing the 'Wofljes_Level_Up_HP.zip' file in your Minecraft world's 'datapack' folder.
It is tested only for 1.16.5, but it should work fine with future Minecraft versions that share the same commandblock syntax.
This datapack was made to resemble the Level Up HP! mod for 1.16.5.
Customization
To customize any values such as the starting HP, the max HP or the required kills per level up, you can change the parameters at the top of the 'compiler.py' file to your likings and run the python file. This will modify the files in the data folder, and update the datapack file. (Which then still has to be manually put in the world's datapack folder!)