# Recipe with resulting item in container?

**URL:** https://discourse.cataclysmdda.org/t/recipe-with-resulting-item-in-container/15935
**Category:** The Toolbox
**Created:** [July 18, 2018, 8:26pm UTC](https://discourse.cataclysmdda.org/t/recipe-with-resulting-item-in-container/15935 "2018-07-18T20:26:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Nick](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/nick/32/5403_2.png) [@Nick](https://discourse.cataclysmdda.org/u/Nick)
#### Post date: [July 18, 2018, 8:26pm UTC](https://discourse.cataclysmdda.org/t/recipe-with-resulting-item-in-container/15935/1 "2018-07-18T20:26:41Z")

</div>

is it possible to craft item inside a container? i was trying to make something like this:

{  
“type” : “recipe”,  
“result”: { “item”: “meat”, “container-item”: “wrapper” },  
“category”: “CC\_FOOD”,  
“subcategory”: “CSC\_FOOD\_OTHER”,  
“skill\_used”: “cooking”,  
“difficulty”: 1,  
“time”: 100,  
“autolearn”: true,  
“components”: [  
[[ “meat”, 1] ],  
[  
[“wrapper”, 1],  
[“paper”, 2]  
]  
]  
}

which is obviously didn’t worked, but is it possible at all without adding some fake already wrapped new food item?

---

<div class="post-metadata">

### Author: ![Sanehatter](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Sanehatter](https://discourse.cataclysmdda.org/u/Sanehatter)
#### Post date: [July 19, 2018, 2:00am UTC](https://discourse.cataclysmdda.org/t/recipe-with-resulting-item-in-container/15935/2 "2018-07-19T02:00:55Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)
#### Post date: [July 19, 2018, 2:45am UTC](https://discourse.cataclysmdda.org/t/recipe-with-resulting-item-in-container/15935/3 "2018-07-19T02:45:53Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Nick](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/nick/32/5403_2.png) [@Nick](https://discourse.cataclysmdda.org/u/Nick)
#### Post date: [July 19, 2018, 3:44am UTC](https://discourse.cataclysmdda.org/t/recipe-with-resulting-item-in-container/15935/4 "2018-07-19T03:44:46Z")

</div>

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

{  
“type” : “recipe”,  
“result”: “meat”,  
“id\_suffix” : “wrapped”,  
“container”: “wrapper”,  
“category”: “CC\_FOOD”,  
“subcategory”: “CSC\_FOOD\_OTHER”,  
“skill\_used”: “cooking”,  
“difficulty”: 1,  
“time”: 100,  
“autolearn”: true,  
“components”: [  
[[ “meat”, 1] ],  
[  
[“wrapper”, 1],  
[“paper”, 2]  
]  
]  
}
