I havent personally looked for this suggestion, I apologies to the developers beforehand. Normally I would.
Using steel bar with cball mold within inventory you should automatically smelt cannonballs. The additional prompt is not needed, "check player having item id ***. if player has item id in inventory they smelt/smith this item.
Unsure if this works for other tiers of smithing, but smithing cballs it would be a much more fluid operation.
This is after reading it a QOL; but we all know qol's/ the little things in life or games make life.
this is my pitch, Thank you for taking the time to read
-Opi