#execute as @s[nbt=!{Item:{tag:{modulebaselore:1b}}}] run data modify entity @s Item.tag.display.Lore append value '{"text":"","color":"gold"}'
data modify entity @s Item.tag.display.Lore append value '{"text":"Modules installed:","color":"gold","italic":false}'
data merge entity @s {Tags:[]}
tag @s add a
data modify entity @s Tags[0] set from entity @s Item.tag.display.Name

data modify entity @s[nbt={Item:{id:"minecraft:netherite_helmet"}},tag=a] Item.tag.display.Name set value '{"text":"Upgraded Netherite Helmet","color":"dark_red","italic":false}'
data modify entity @s[nbt={Item:{id:"minecraft:netherite_chestplate"}},tag=a] Item.tag.display.Name set value '{"text":"Upgraded Netherite Chestplate","color":"dark_red","italic":false}'
data modify entity @s[nbt={Item:{id:"minecraft:netherite_leggings"}},tag=a] Item.tag.display.Name set value '{"text":"Upgraded Netherite Leggings","color":"dark_red","italic":false}'
data modify entity @s[nbt={Item:{id:"minecraft:netherite_boots"}},tag=a] Item.tag.display.Name set value '{"text":"Upgraded Netherite Boots","color":"dark_red","italic":false}'


data modify entity @s Item.tag merge value {modulebaselore:1b}