$data modify entity @s text set value [{"color":"green","italic":false,"text":"Apply cost: "},{"bold":false,"color":"#00E600","italic":false,"text":"$(apply_amt)"}]
execute if score .is_rename const matches 1.. run return fail
execute unless score .apply_id const matches 0.. run data modify entity @s text set value [{"color":"red","italic":false,"text":"Invaid Forge Item!"}]
execute if score .forge_item_id const matches -2 if score .apply_id const matches 1.. run data modify entity @s text set value [{"color":"red","italic":false,"text":"Invaild Item!"}]
execute if score .apply_id const matches -1 if score .forge_item_id const matches 0.. run data modify entity @s text set value [{"color":"red","italic":false,"text":"Please Input [➡] Forge Item!"}]
execute if score .apply_id const matches 0 if score .forge_item_id const matches 0 run data modify entity @s text set value [{"color":"red","italic":false,"text":"What are you trying to achieve?"}]
execute if score .forge_item_id const matches -2 run data modify entity @s text set value [{"color":"red","italic":false,"text":"Please Input [⬅] Target Item!"}]
execute if score .apply_id const matches 0 if score .forge_item_id const matches 1.. run data modify entity @s text set value [{"color":"red","italic":false,"text":"Item is a forge item!"}]
execute if score .apply_id const matches -1 if score .forge_item_id const matches -1 unless score .isrequireconvert const matches 1.. run data modify entity @s text set value [{"color":"red","italic":false,"text":"Please Input [➡] Forge Item!"}]
execute if score .forge_item_id const matches -1 if score .apply_id const matches 1.. if score .isrequireconvert const matches 1.. run data modify entity @s text set value [{"color":"red","italic":false,"text":"Apply Vanilla Item Converter First!"}]
execute if score .forge_item_id const matches 1.. if score .apply_id const matches 1.. unless score .is_supreme const matches 1.. run data modify entity @s text set value [{"color":"red","italic":false,"text":"Item is already reforged!"}]
$execute if score .apply_cost const matches 0.. if score .apply_id const matches 75 if score .forge_item_id const matches 0.. run data modify entity @s text set value [{"color":"green","italic":false,"text":"[0] Apply cost: "},{"bold":false,"color":"#00E600","italic":false,"text":"$(apply_amt)"}]
$execute if score .apply_cost const matches 0.. if score .apply_id const matches 75 if score .forge_item_id const matches 0.. if score .enhancement_count const matches 1.. run data modify entity @s text set value [{"color":"green","italic":false,"text":"[$(enhancement_count)] Apply cost: "},{"bold":false,"color":"#00E600","italic":false,"text":"$(apply_amt)"}]
$execute if score .apply_cost const matches 0.. if score .apply_id const matches 39 run data modify entity @s text set value [{"color":"green","italic":false,"text":"Apply cost: "},{"bold":false,"color":"#00E600","italic":false,"text":"$(apply_amt)"}]
execute if score .enhancement_count const matches 10.. if score .apply_id const matches 75 run data modify entity @s text set value [{"color":"red","italic":false,"text":"Number of Enhancements is at Max!"}]
execute if score .has_profile const matches 1.. unless score .apply_cost const matches 0.. run data modify entity @s text set value [{"color":"green","italic":false,"text":"Apply cost: "},{"bold":false,"color":"#00E600","italic":false,"text":"20"}]