
scoreboard players remove @a[c=1,scores={exhregen=1..99999}] exhregen 1

scoreboard players remove @a[c=1,scores={exhel=1..99999}] exhel 1

execute as @a[c=1,scores={exhregen=0,exhel=0}] run execute unless score @s exhaust = @s exhaust_lim run scoreboard players add @s exhaust 1

scoreboard players set @a[scores={exhel=0}] exhel 3

execute as @a[c=1,scores={exhaust=-999..-20}] run kill @s

execute as @a[c=1,scores={exhaust=-999..-20}] run scoreboard players set @s exhaust 100
