while player is online:
set {_health} to player's health
set {_maxhealth} to player's max health
if time since {lastHit::%player's UUID%} < 12 seconds:
set {timer::%player's UUID%} to 12
loop
send action bar "&cHealth: %{_health}%/&c%{_maxhealth}%❤ &f(%{timesince::%player's UUID%}%)"
else:
send action bar "&cHealth: %{_health}%/&c%{_maxhealth}%❤"
wait 2 ticks
on damage of a player:
set {lastHit::%victim's uuid%} to now
set {lastHit::%attacker's uuid%} to now
set {pvp12second::%victim's uuid%} to true
set {pvp12second::%attacker's uuid%} to true
im trying to make the timer go downward but cant think of how


