
# -> Operate on players who need attribute restorations
execute as @a[tag=OverlyRealistic.Player.NeedsAttributeRestoration] run \
    function overly_realistic:general/downing/attribute_restoration/restoration_start

# -> Add to loop
scoreboard players add #or.player_death_restoration_loop OverlyRealistic.General.ArbitraryData 1

# -> Loop
execute unless score #or.player_death_restoration_loop OverlyRealistic.General.ArbitraryData matches 21.. run \
    schedule function overly_realistic:general/downing/attribute_restoration/normal_respawn_restore_attributes 1t append
