$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 if score .is_invalid const matches 1.. run data modify entity @s text set value [{"color":"red","italic":false,"text":"❌ Invaild Item Type!"}]
execute unless score .apply_id const matches 0.. unless score .store_reforgeid const matches 1.. run data modify entity @s text set value [{"color":"red","italic":false,"text":"❌ Invalid 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":"❌ Invalid Item!"}]
execute if score .apply_id const matches -1 if score .forge_item_id const matches 0.. unless score .store_reforgeid const matches 1.. 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.. unless score .store_reforgeid 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.. unless score .forging_type const matches 2 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 unless score .is_invalid const matches 1.. run data modify entity @s text set value [{"color":"green","italic":false,"text":"[📚1/$(enhancement_max)] 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 .enhancement_count const matches 1.. unless score .is_invalid const matches 1.. run data modify entity @s text set value [{"color":"green","italic":false,"text":"[📚$(enhancement_count)/$(enhancement_max)] 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 unless score .non_repairable const matches 1.. 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 .apply_cost const matches 0.. if score .apply_id const matches 85 unless score .is_invalid const matches 1.. run data modify entity @s text set value [{"color":"green","italic":false,"text":"⦿ Refund Amount: "},{"bold":false,"color":"#00E600","italic":false,"text":"$(refund_amount)"}]
execute if score .apply_cost const matches 0.. if score .apply_id const matches 39 if score .non_repairable const matches 1.. run data modify entity @s text set value [{"color":"red","italic":false,"text":"❌ The Item doesn't need to be repaired!"}]
$execute if score .enhancement_count const > .enhancementmaxcount const 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! [$(enhancement_max)]"}]
execute if score .has_profile const matches 1.. unless score .is_invalid 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"}]
execute if score .require_level const > .player_lvl const run data modify entity @s text set value [{"color":"red","italic":false,"text":"❌ Forging Level doesn't match! \n"},{"color":"#FF0000","text":"⚒ Need Lvl "},{"bold":true,"color":"#FF0000","italic":false,"score":{"name":".require_level","objective":"const"}},{"color":"gray","text":"\n[Current: "},{"color":"gray","italic":false,"score":{"name":".player_lvl","objective":"const"}},{"color":"gray","italic":false,"text":"]"}]