So I've been making this mod that has new kinds of smithing templates, ones that you can fill with an ingredient and upgrade a weapon once you do so. I have items for both the empty and filled templates. I have it set so that the filled templates stay in the crafting grid, and return an empty template. However, this seems to only work in the crafting table, and not the smithing table, as it just takes the item and doesnt return the empty template.
I have tried making a procedure that gives an empty template back once an item is upgraded, but I can't seem to get it to work. Any advice on how to get that working?