# [MAGUS] ✦ Max Mana
    # Phase 1
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:100_points_max_health_upgrade"}]}]}] if score @s Points matches 15.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:200_points_max_health_upgrade"}]}]}] if score @s Points matches 35.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:325_points_max_health_upgrade"}]}]}] if score @s Points matches 60.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:500_points_max_health_upgrade"}]}]}] if score @s Points matches 100.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:750_points_max_health_upgrade"}]}]}] if score @s Points matches 150.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1000_points_max_health_upgrade"}]}]}] if score @s Points matches 220.. run scoreboard players add @s magus_mana_bar_max 10
    # Phase 2
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1300_points_max_health_upgrade"}]}]}] if score @s Points matches 300.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1650_points_max_health_upgrade"}]}]}] if score @s Points matches 400.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:2050_points_max_health_upgrade"}]}]}] if score @s Points matches 525.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:2500_points_max_health_upgrade"}]}]}] if score @s Points matches 675.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:3000_points_max_health_upgrade"}]}]}] if score @s Points matches 850.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:3500_points_max_health_upgrade"}]}]}] if score @s Points matches 1000.. run scoreboard players add @s magus_mana_bar_max 10
    # Phase 3
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:4025_points_max_health_upgrade"}]}]}] if score @s Points matches 1200.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:4575_points_max_health_upgrade"}]}]}] if score @s Points matches 1425.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:5150_points_max_health_upgrade"}]}]}] if score @s Points matches 1675.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:5750_points_max_health_upgrade"}]}]}] if score @s Points matches 1950.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:6375_points_max_health_upgrade"}]}]}] if score @s Points matches 2250.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:7000_points_max_health_upgrade"}]}]}] if score @s Points matches 2600.. run scoreboard players add @s magus_mana_bar_max 10
    # Phase 4
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:7675_points_max_health_upgrade"}]}]}] if score @s Points matches 3000.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:8375_points_max_health_upgrade"}]}]}] if score @s Points matches 3450.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:9100_points_max_health_upgrade"}]}]}] if score @s Points matches 3950.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:9850_points_max_health_upgrade"}]}]}] if score @s Points matches 4500.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:10675_points_max_health_upgrade"}]}]}] if score @s Points matches 5100.. run scoreboard players add @s magus_mana_bar_max 10
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:11500_points_max_health_upgrade"}]}]}] if score @s Points matches 5750.. run scoreboard players add @s magus_mana_bar_max 20

# [MAGUS] ⇵ Mana Regen
execute unless score @s magus_apotheosis_timer matches 1.. if score @s Points matches ..219 run scoreboard players set @s magus_mana_regen 1
execute unless score @s magus_apotheosis_timer matches 1.. if score @s Points matches 220..999 run scoreboard players set @s magus_mana_regen 2
execute unless score @s magus_apotheosis_timer matches 1.. if score @s Points matches 1000..2599 run scoreboard players set @s magus_mana_regen 3
execute unless score @s magus_apotheosis_timer matches 1.. if score @s Points matches 2600..5750 run scoreboard players set @s magus_mana_regen 4
execute unless score @s magus_apotheosis_timer matches 1.. if score @s Points matches 5750.. run scoreboard players set @s magus_mana_regen 5

# Point Milestones UX
    # Unlock Tier 2 & 3
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:200_points_max_health_upgrade"}]}]}] if score @s Points matches 35.. run tellraw @s {"text": "You have unlocked Tier 2 Magic! You are now able to use spells on Tier 2 Wands.", "color": "yellow"}
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:750_points_max_health_upgrade"}]}]}] if score @s Points matches 150.. run tellraw @s {"text": "You have unlocked Tier 3 Magic! You are now able to use spells on Tier 3 Wands.", "color": "yellow"}
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1300_points_max_health_upgrade"}]}]}] if score @s Points matches 300.. run tellraw @s {"text": "You have unlocked Tier 4 Magic! You are now able to use spells on Tier 4 Wands.", "color": "yellow"}

    # Sequence 10 
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:100_points_max_health_upgrade"}]}]}] if score @s Points matches 15.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:200_points_max_health_upgrade"}]}]}] if score @s Points matches 35.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:325_points_max_health_upgrade"}]}]}] if score @s Points matches 60.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:500_points_max_health_upgrade"}]}]}] if score @s Points matches 100.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:750_points_max_health_upgrade"}]}]}] if score @s Points matches 150.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1000_points_max_health_upgrade"}]}]}] if score @s Points matches 220.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
    # Sequence 9
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1300_points_max_health_upgrade"}]}]}] if score @s Points matches 300.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1650_points_max_health_upgrade"}]}]}] if score @s Points matches 400.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:2050_points_max_health_upgrade"}]}]}] if score @s Points matches 525.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:2500_points_max_health_upgrade"}]}]}] if score @s Points matches 675.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:3000_points_max_health_upgrade"}]}]}] if score @s Points matches 850.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:3500_points_max_health_upgrade"}]}]}] if score @s Points matches 1000.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]

    # Sequence 8
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:4025_points_max_health_upgrade"}]}]}] if score @s Points matches 1200.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:4575_points_max_health_upgrade"}]}]}] if score @s Points matches 1425.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:5150_points_max_health_upgrade"}]}]}] if score @s Points matches 1675.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:5750_points_max_health_upgrade"}]}]}] if score @s Points matches 1950.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:6375_points_max_health_upgrade"}]}]}] if score @s Points matches 2250.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:7000_points_max_health_upgrade"}]}]}] if score @s Points matches 2600.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]

    # Sequence 7
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:7675_points_max_health_upgrade"}]}]}] if score @s Points matches 3000.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:8375_points_max_health_upgrade"}]}]}] if score @s Points matches 3450.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:9100_points_max_health_upgrade"}]}]}] if score @s Points matches 3950.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:9850_points_max_health_upgrade"}]}]}] if score @s Points matches 4500.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:10675_points_max_health_upgrade"}]}]}] if score @s Points matches 5100.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:11500_points_max_health_upgrade"}]}]}] if score @s Points matches 5750.. run tellraw @s [{"text": "+10 ✦ Max Mana (", "color": "blue"},{"score": {"name": "@s","objective": "magus_mana_bar_max"}},{"text": " Max)"}]

# Mana Regen UX
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1000_points_max_health_upgrade"}]}]}] if score @s Points matches 220.. run tellraw @s {"text": "+1 ⇵ Mana Regen (2 Total)", "color": "blue"}
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:3500_points_max_health_upgrade"}]}]}] if score @s Points matches 1000.. run tellraw @s {"text": "+1 ⇵ Mana Regen (3 Total)", "color": "blue"}
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:7000_points_max_health_upgrade"}]}]}] if score @s Points matches 2600.. run tellraw @s {"text": "+1 ⇵ Mana Regen (4 Total)", "color": "blue"}
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:11500_points_max_health_upgrade"}]}]}] if score @s Points matches 5750.. run tellraw @s {"text": "+1 ⇵ Mana Regen (5 Total)", "color": "blue"}

# [MAGUS] Tier Unlocks
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:200_points_max_health_upgrade"}]}]}] if score @s Points matches 35.. run tag @s add magus_tier_2_unlocked
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:750_points_max_health_upgrade"}]}]}] if score @s Points matches 150.. run tag @s add magus_tier_3_unlocked
execute unless entity @s[nbt={attributes:[{modifiers:[{id:"minecraft:1300_points_max_health_upgrade"}]}]}] if score @s Points matches 300.. run tag @s add magus_tier_4_unlocked