Version without keepInventory.
The code has been optimized.
Multiplayer compatibility has been added.
The maximum HP regeneration system has been changed – now it occurs every 20 minutes, independent of Minecraft's in-game time.
Version without keepInventory.
The data pack has been split into two versions: one with keepInventory support and one without.
In the keepInventory-enabled version, a new mechanic has been introduced: upon player death, a portion of their experience is dropped as three XP orbs.
Changelog - Version 1.0
This is the first version of the datapack. The following features have been implemented:
Death Penalty – Upon death, the player's maximum HP is reduced to 6 (3 hearts).
Health Regeneration – Every in-game day, the player recovers 2 HP (1 heart).
Experience Reset – If /gamerule keepInventory true is enabled, the player's experience resets upon death.