execute store result score .attribute_value const run data get storage minecraft:reforge temp.attribute.attribute_value 1000
$execute unless data storage minecraft:reforge temp.attribute{attribute_operation:"add_value"} if score .attribute_value const matches 1000.. run data modify storage minecraft:reforge temp.attribute.data append value {"bold":false,"color":"#8D8FFF","italic":false,"text":"+$(attribute_value)% $(attribute_name)"}
$execute if data storage minecraft:reforge temp.attribute{attribute_operation:"add_value"} if score .attribute_value const matches 1000.. run data modify storage minecraft:reforge temp.attribute.data append value {"bold":false,"color":"#8D8FFF","italic":false,"text":"+$(attribute_value) $(attribute_name)"}
$execute if data storage minecraft:reforge temp.attribute{attribute_operation:"add_value"} if score .attribute_value const matches 1..999 run data modify storage minecraft:reforge temp.attribute.data append value {"bold":false,"color":"#8D8FFF","italic":false,"text":"+0$(attribute_value) $(attribute_name)"}
$execute unless data storage minecraft:reforge temp.attribute{attribute_operation:"add_value"} if score .attribute_value const matches 1..999 run data modify storage minecraft:reforge temp.attribute.data append value {"bold":false,"color":"#8D8FFF","italic":false,"text":"+0$(attribute_value)% $(attribute_name)"}
$execute unless data storage minecraft:reforge temp.attribute{attribute_operation:"add_value"} if score .attribute_value const matches ..-1 run data modify storage minecraft:reforge temp.attribute.data append value {"bold":false,"color":"#8D8FFF","italic":false,"text":"$(attribute_value)% $(attribute_name)"}
$execute if data storage minecraft:reforge temp.attribute{attribute_operation:"add_value"} if score .attribute_value const matches ..-1 run data modify storage minecraft:reforge temp.attribute.data append value {"bold":false,"color":"#8D8FFF","italic":false,"text":"$(attribute_value) $(attribute_name)"}
execute if score .attribute_index const < .attribute_length const run data modify storage minecraft:reforge temp.attribute.data append value {"text":"\n"}