# Max Health
    # Sequence 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:100_points_max_health_upgrade"}]}]}] if score @s Points matches 15.. run attribute @s max_health modifier add 100_points_max_health_upgrade 2 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:200_points_max_health_upgrade"}]}]}] if score @s Points matches 35.. run attribute @s max_health modifier add 200_points_max_health_upgrade 2 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:325_points_max_health_upgrade"}]}]}] if score @s Points matches 60.. run attribute @s max_health modifier add 325_points_max_health_upgrade 2 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:500_points_max_health_upgrade"}]}]}] if score @s Points matches 100.. run attribute @s max_health modifier add 500_points_max_health_upgrade 2 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:750_points_max_health_upgrade"}]}]}] if score @s Points matches 150.. run attribute @s max_health modifier add 750_points_max_health_upgrade 2 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1000_points_max_health_upgrade"}]}]}] if score @s Points matches 220.. run attribute @s max_health modifier add 1000_points_max_health_upgrade 0.10 add_multiplied_base
    # Sequence 9
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1300_points_max_health_upgrade"}]}]}] if score @s Points matches 300.. run attribute @s max_health modifier add 1300_points_max_health_upgrade 2.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1650_points_max_health_upgrade"}]}]}] if score @s Points matches 400.. run attribute @s max_health modifier add 1650_points_max_health_upgrade 2.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:2050_points_max_health_upgrade"}]}]}] if score @s Points matches 525.. run attribute @s max_health modifier add 2050_points_max_health_upgrade 2.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:2500_points_max_health_upgrade"}]}]}] if score @s Points matches 675.. run attribute @s max_health modifier add 2500_points_max_health_upgrade 2.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:3000_points_max_health_upgrade"}]}]}] if score @s Points matches 850.. run attribute @s max_health modifier add 3000_points_max_health_upgrade 2.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:3500_points_max_health_upgrade"}]}]}] if score @s Points matches 1000.. run attribute @s max_health modifier add 3500_points_max_health_upgrade 0.11 add_multiplied_base
    # Sequence 8
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:4025_points_max_health_upgrade"}]}]}] if score @s Points matches 1200.. run attribute @s max_health modifier add 4025_points_max_health_upgrade 3 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:4575_points_max_health_upgrade"}]}]}] if score @s Points matches 1425.. run attribute @s max_health modifier add 4575_points_max_health_upgrade 3 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:5150_points_max_health_upgrade"}]}]}] if score @s Points matches 1675.. run attribute @s max_health modifier add 5150_points_max_health_upgrade 3 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:5750_points_max_health_upgrade"}]}]}] if score @s Points matches 1950.. run attribute @s max_health modifier add 5750_points_max_health_upgrade 3 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:6375_points_max_health_upgrade"}]}]}] if score @s Points matches 2250.. run attribute @s max_health modifier add 6375_points_max_health_upgrade 3 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:7000_points_max_health_upgrade"}]}]}] if score @s Points matches 2600.. run attribute @s max_health modifier add 7000_points_max_health_upgrade 0.12 add_multiplied_base
    # Sequence 7
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:7675_points_max_health_upgrade"}]}]}] if score @s Points matches 3000.. run attribute @s max_health modifier add 7675_points_max_health_upgrade 3.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:8375_points_max_health_upgrade"}]}]}] if score @s Points matches 3450.. run attribute @s max_health modifier add 8375_points_max_health_upgrade 3.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:9100_points_max_health_upgrade"}]}]}] if score @s Points matches 3950.. run attribute @s max_health modifier add 9100_points_max_health_upgrade 3.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:9850_points_max_health_upgrade"}]}]}] if score @s Points matches 4500.. run attribute @s max_health modifier add 9850_points_max_health_upgrade 3.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:10675_points_max_health_upgrade"}]}]}] if score @s Points matches 5100.. run attribute @s max_health modifier add 10675_points_max_health_upgrade 3.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:11500_points_max_health_upgrade"}]}]}] if score @s Points matches 5750.. run attribute @s max_health modifier add 11500_points_max_health_upgrade 0.13 add_multiplied_base

# Atk Dmg
    # Sequence 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:100_points_attack_damage_upgrade"}]}]}] if score @s Points matches 15.. run attribute @s attack_damage modifier add 100_points_attack_damage_upgrade 0.2 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:200_points_attack_damage_upgrade"}]}]}] if score @s Points matches 35.. run attribute @s attack_damage modifier add 200_points_attack_damage_upgrade 0.2 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:325_points_attack_damage_upgrade"}]}]}] if score @s Points matches 60.. run attribute @s attack_damage modifier add 325_points_attack_damage_upgrade 0.2 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:500_points_attack_damage_upgrade"}]}]}] if score @s Points matches 100.. run attribute @s attack_damage modifier add 500_points_attack_damage_upgrade 0.2 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:750_points_attack_damage_upgrade"}]}]}] if score @s Points matches 150.. run attribute @s attack_damage modifier add 750_points_attack_damage_upgrade 0.2 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1000_points_attack_damage_upgrade"}]}]}] if score @s Points matches 220.. run attribute @s attack_damage modifier add 1000_points_attack_damage_upgrade 0.05 add_multiplied_base
    # Sequence 9
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1300_points_attack_damage_upgrade"}]}]}] if score @s Points matches 300.. run attribute @s attack_damage modifier add 1300_points_attack_damage_upgrade 0.3 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1650_points_attack_damage_upgrade"}]}]}] if score @s Points matches 400.. run attribute @s attack_damage modifier add 1650_points_attack_damage_upgrade 0.3 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:2050_points_attack_damage_upgrade"}]}]}] if score @s Points matches 525.. run attribute @s attack_damage modifier add 2050_points_attack_damage_upgrade 0.3 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:2500_points_attack_damage_upgrade"}]}]}] if score @s Points matches 675.. run attribute @s attack_damage modifier add 2500_points_attack_damage_upgrade 0.3 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:3000_points_attack_damage_upgrade"}]}]}] if score @s Points matches 850.. run attribute @s attack_damage modifier add 3000_points_attack_damage_upgrade 0.3 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:3500_points_attack_damage_upgrade"}]}]}] if score @s Points matches 1000.. run attribute @s attack_damage modifier add 3500_points_attack_damage_upgrade 0.7 add_multiplied_base
    # Sequence 8
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:4025_points_attack_damage_upgrade"}]}]}] if score @s Points matches 1200.. run attribute @s attack_damage modifier add 4025_points_attack_damage_upgrade 0.4 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:4575_points_attack_damage_upgrade"}]}]}] if score @s Points matches 1425.. run attribute @s attack_damage modifier add 4575_points_attack_damage_upgrade 0.4 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:5150_points_attack_damage_upgrade"}]}]}] if score @s Points matches 1675.. run attribute @s attack_damage modifier add 5150_points_attack_damage_upgrade 0.4 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:5750_points_attack_damage_upgrade"}]}]}] if score @s Points matches 1950.. run attribute @s attack_damage modifier add 5750_points_attack_damage_upgrade 0.4 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:6375_points_attack_damage_upgrade"}]}]}] if score @s Points matches 2250.. run attribute @s attack_damage modifier add 6375_points_attack_damage_upgrade 0.4 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:7000_points_attack_damage_upgrade"}]}]}] if score @s Points matches 2600.. run attribute @s attack_damage modifier add 7000_points_attack_damage_upgrade 0.9 add_multiplied_base
    # Sequence 7
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:7675_points_attack_damage_upgrade"}]}]}] if score @s Points matches 3000.. run attribute @s attack_damage modifier add 7675_points_attack_damage_upgrade 0.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:8375_points_attack_damage_upgrade"}]}]}] if score @s Points matches 3450.. run attribute @s attack_damage modifier add 8375_points_attack_damage_upgrade 0.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:9100_points_attack_damage_upgrade"}]}]}] if score @s Points matches 3950.. run attribute @s attack_damage modifier add 9100_points_attack_damage_upgrade 0.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:9850_points_attack_damage_upgrade"}]}]}] if score @s Points matches 4500.. run attribute @s attack_damage modifier add 9850_points_attack_damage_upgrade 0.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:10675_points_attack_damage_upgrade"}]}]}] if score @s Points matches 5100.. run attribute @s attack_damage modifier add 10675_points_attack_damage_upgrade 0.5 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:11500_points_attack_damage_upgrade"}]}]}] if score @s Points matches 5750.. run attribute @s attack_damage modifier add 11500_points_attack_damage_upgrade 0.11 add_multiplied_base

# Atk Spd
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1000_points_attack_speed_upgrade"}]}]}] if score @s Points matches 220.. run attribute @s attack_speed modifier add 1000_points_attack_speed_upgrade 0.2 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:3500_points_attack_speed_upgrade"}]}]}] if score @s Points matches 1000.. run attribute @s attack_speed modifier add 3500_points_attack_speed_upgrade 0.3 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:7000_points_attack_speed_upgrade"}]}]}] if score @s Points matches 2600.. run attribute @s attack_speed modifier add 7000_points_attack_speed_upgrade 0.4 add_value
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:11500_points_attack_speed_upgrade"}]}]}] if score @s Points matches 5750.. run attribute @s attack_speed modifier add 11500_points_attack_speed_upgrade 0.5 add_value

# Armor
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:500_points_armor_upgrade"}]}]}] if score @s Points matches 100.. run attribute @s armor modifier add 500_points_armor_upgrade 0.02 add_multiplied_base
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1000_points_armor_upgrade"}]}]}] if score @s Points matches 400.. run attribute @s armor modifier add 1000_points_armor_upgrade 0.02 add_multiplied_base
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1500_points_armor_upgrade"}]}]}] if score @s Points matches 1000.. run attribute @s armor modifier add 1500_points_armor_upgrade 0.02 add_multiplied_base
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:2000_points_armor_upgrade"}]}]}] if score @s Points matches 1950.. run attribute @s armor modifier add 2000_points_armor_upgrade 0.02 add_multiplied_base
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:2500_points_armor_upgrade"}]}]}] if score @s Points matches 3000.. run attribute @s armor modifier add 2500_points_armor_upgrade 0.02 add_multiplied_base
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:3000_points_armor_upgrade"}]}]}] if score @s Points matches 4500.. run attribute @s armor modifier add 3000_points_armor_upgrade 0.02 add_multiplied_base

execute if score @s limitbreak_chosen_class matches 1 run function kiwi2:points/slayer_quickdraw_upgrades_silent
execute if score @s limitbreak_chosen_class matches 2 run function kiwi2:points/knight_scaling_upgrades_silent

# THESE TWO DONT HAVE CLASS-SPECIFIC POINT PROGRESSION (YET)
# execute if score @s limitbreak_chosen_class matches 3 run function kiwi2:upgrades/classes/hunter/hunter_class_give_modifiers_only
# execute if score @s limitbreak_chosen_class matches 4 run function kiwi2:upgrades/classes/apothecary/apothecary_class_give_modifiers_only

# DONT GIVE [MAGUS] CLASS-SPECIFIC POINT PROGRESSION SINCE IT USES /BOSSBAR ADD, NO DYING DOES NOT RESET MAGUS_MANA_BAR_MAX SCOREBOARDS
# execute if score @s limitbreak_chosen_class matches 5 run function kiwi2:points/magus_mana_upgrades_silent

# THERE REALLY IS NO NEED FOR THIS ONE BUT ITS A GOOD FALLBACK
execute if score @s limitbreak_chosen_class matches 6 run function kiwi2:points/reaper_excision_upgrades_silent

execute if score @s limitbreak_chosen_class matches 7 run function kiwi2:points/monk_conditioning_upgrades_silent

# THERE REALLY IS NO NEED FOR THIS ONE BUT ITS A GOOD FALLBACK
execute if score @s limitbreak_chosen_class matches 8 run function kiwi2:upgrades/classes/necromancer/necromancer_class_give_modifiers_only

scoreboard players reset @a RestoreAttributes