I made a datapack about lives whenever a player dies it gets 1 Deaths Scoreboard and then it will remove 1 live which will reset Deaths scoreboard:
Minecraft Version: 1.21.3
Running on Server
I am using optimization mods only:
[35mexecute [34mas [36m@a[33m[[37mscores[34m=[35m{[37mDeaths[34m=[32m1[35m..}[33m] [34mrun [35mscoreboard [34mplayers remove [36m@s [0mLives [32m1
[35mscoreboard [34mplayers reset [36m@a[33m[[37mscores[34m=[35m{[37mDeaths[34m=[32m1[35m..}[33m] [0mDeaths
It's constantly running in tick.mcfunction btw