
# -> Reset value
scoreboard players reset @s OverlyRealistic.Player.SprintTime

# -> Add to max stamina
scoreboard players add @s OverlyRealistic.Player.Stats.MaxStamina 1

# -> If maxSpeed = max then return
execute if score @s OverlyRealistic.Player.Stats.Speed matches 10.. run \
    return run \
        scoreboard players set @s OverlyRealistic.Player.Stats.Speed 10

# -> Add to speed stat
execute store result storage overly_realistic:temp_values generic_value_0 int 1 run \
    scoreboard players add @s OverlyRealistic.Player.Stats.Speed 1

# -> Add to attribute modifier
function overly_realistic:players/stamina/improve_running/add_improved_modifier with storage overly_realistic:temp_values
