Prevent items from stacking

I want to prevent all dropped raw iron, and all coal to stop stacking when near each other. Made a simple "furnace" command that melts if they are close together, but it doesn't work if item stack is not 1.

Continue to help post