There is a number of canned, vacuum-packed and pickled recipes in game that require containers for crafting. I never looked into the code myself but that might be what you’re looking for.
It looks like you add the
“container”: “jar_glass_sealed”,
field to the recipe. See data/json/recipes/recipe_food.json lines 5717-5776, among others, for examples.
Though the only recipes that use a container field only use jar_glass_sealed or jar_3l_glass_sealed as containers, so there might be some other limitation there. Canned soup recipes don’t use it, but there’s no documentation about any limitation so I would give it a try.
yes! many thanks guys, it’s worked, don’t know how i forget about all those canned recipes, now i can repack things back into boxes or wrap them in paper