scoreboard players operation @s dmg = damage stats_calc
scoreboard players operation @s curse = curse stats_calc
scoreboard players operation @s luck = luck stats_calc
scoreboard players operation @s mana_speed = mana_speed stats_calc
scoreboard players operation @s mana_capacity = mana_capacity stats_calc
scoreboard players operation @s mana_cost = mana_cost stats_calc
scoreboard players operation @s souls_capacity = souls_capacity stats_calc
# Calc global
execute as @a run scoreboard players operation global curse += @s curse
execute as @a run scoreboard players operation global curse += pandoras_pouch curse
execute if score global curse matches 1000.. run scoreboard players set global curse 1000
execute as @a run scoreboard players operation global luck += @s luck
