#say Player Update! 
#say Player Update! 

scoreboard players set @s nl.MP.Max 10

execute store result score #temp nl.MP.Max run data get entity @s Inventory.[{Slot:103b}].tag.AttributeModifiers.[{AttributeName:"custom.MaxMana"}].Amount
scoreboard players operation @s nl.MP.Max += #temp nl.MP.Max 
scoreboard players set #temp nl.MP.Max 0

execute store result score #temp nl.MP.Max run data get entity @s Inventory.[{Slot:102b}].tag.AttributeModifiers.[{AttributeName:"custom.MaxMana"}].Amount
scoreboard players operation @s nl.MP.Max += #temp nl.MP.Max 
scoreboard players set #temp nl.MP.Max 0

execute store result score #temp nl.MP.Max run data get entity @s Inventory.[{Slot:101b}].tag.AttributeModifiers.[{AttributeName:"custom.MaxMana"}].Amount
scoreboard players operation @s nl.MP.Max += #temp nl.MP.Max 
scoreboard players set #temp nl.MP.Max 0

execute store result score #temp nl.MP.Max run data get entity @s Inventory.[{Slot:100b}].tag.AttributeModifiers.[{AttributeName:"custom.MaxMana"}].Amount
scoreboard players operation @s nl.MP.Max += #temp nl.MP.Max 
scoreboard players set #temp nl.MP.Max 0

execute store result score #temp nl.MP.Max run data get entity @s SelectedItem.tag.nl_ManaMax
scoreboard players operation @s nl.MP.Max += #temp nl.MP.Max 
scoreboard players set #temp nl.MP.Max 0

execute if score @s nl.MP.Current > @s nl.MP.Max run scoreboard players operation @s nl.MP.Current = @s nl.MP.Max