Crafting a material in a can seperate from that can

Long time follower, first time poster. Blah blah.

Here’s my issue in the mod I’m making: I want the player to be able to craft an item using soda, which is typically found inside a can. However, when I specify the various soda types (ex: creamsoda) the crafting menu requires that I have both an empty can and the cream soda stored inside its can. Is there any way I can make the recipe call for the soda within its can? Or will I have to force the player to have a spare can lying around?

The ingredients list currently looks like this:

"components": [ [ [ "canister_empty", 1 ], [ "can_drink", 1 ], [ "can_food", 1 ] ], [ [ "mystery_item_what_could_it_be", 1 ] ], [ [ "cola", 1], [ "creamsoda", 1 ], [ "orangesoda", 1 ], [ "colamdew", 1 ], [ "rootbeer", 1 ], [ "spezi", 1 ], [ "crispycran", 1 ], [ "purple_drink", 1 ], [ "lemonlime", 1 ] ] ]

Currently, no: same problem as needing an empty bottle to make a molotov and not being able to boil water and planning to put it back in the container. Code doesn’t check to see that your crafting would empty a container before checking for the container.

Sorry, but welcome to the forums.