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

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

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

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

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