scoreboard players add mana_speed stats_calc 1
scoreboard players add mana_capacity stats_calc 10
scoreboard players remove mana_cost stats_calc 5
advancement grant @s only items:sets/0_mage_armor
advancement grant @s only items:sets/num mage_armor

execute if score pre mage_armor < num mage_armor run tellraw @s [{"translate":"set.mage_armor","color":"gray"}," ",{"translate":"equiped","color":"gray"}]