Contained liquids in recipes?

How do I put that in? EG you disassemble a 6 pack of beer and you get 6 cans of beer.

I honestly have no idea, maybe adjusting json for crafting? I still think its a good idea though

Since stuff doesn’t come in bottles of assorted sizes I thought it might be a good idea to have assorted de-craftable packages of water, cola, etc. But I noticed a small hitch in the plan when I went to make the de-crafting recipies.

What about the DEJAR function? is it possible to give it multiple charges?
Strike that, wouldn’t work. You wouldn’t be getting the bottles… hmn

[size=8pt]Maybe something like this? Though you would have to make an item with the ID sixpack as or whatever. I’m not exactly sure as I have not tested this.[/size]

{ "type" : "recipe", "result": "sixpack", "category": "CC_ARMOR", "skill_used": "survival", "difficulty": 0, "time": 100, "reversible": false, "autolearn": true, "components": [ [ [ "can_drink", 6 ] ], [ [ "sixpack_plastic_ring", 1 ] ] ] }

[size=8pt]Edit Though I’m not sure if this would give you an actual canned drink with something inside but maybe worth checking out.[/size]

[quote=“Anonymous, post:4, topic:4038”][size=8pt]Maybe something like this? Though you would have to make an item with the ID sixpack as or whatever. I’m not exactly sure as I have not tested this.[/size]

{ "type" : "recipe", "result": "sixpack", "category": "CC_ARMOR", "skill_used": "survival", "difficulty": 0, "time": 100, "reversible": false, "autolearn": true, "components": [ [ [ "can_drink", 6 ] ], [ [ "sixpack_plastic_ring", 1 ] ] ] }

[size=8pt]Edit Though I’m not sure if this would give you an actual canned drink with something inside but maybe worth checking out.[/size][/quote]

I’ve looked at a save file with a bottle of water and it looks like this:

Unfortunately the game doesn’t like that or a vague interpretation of it as [ “bottle_plastic” “charges 2” “water_clean” ] and while giving the option to disassemble the items and have them come out separately ignoring that it wouldn’t work with cans, the water (and bottles) are just dropped.

The only thing I can thing to do would be something like the “DEJAR” flag and use an activator but the problem then is you can’t keep the bottles separately and you’ve got a hugeass container of water (or other liquids)

EDIT: How does the game spawn contained liquids? or the debugger? Would it be possible to make the 12 pack “wish granted!” 12 bottles of water?

In the profession.json file just posted HERE it appears you can just say “water_clean” or whatever and it will have a container.

For whatever reason when spawned like that, or by the RNG in a loot list for a house it spawns in a container, but for the purposes of the decrafting recipe it comes without a container.

I might have to add a flag or something… Bluh

Right now IIRC the recipe system doesn’t support what you are looking to do, though it does highlight an important potential improvement, that of being able to flag things as “contained” (automatically spawn within their container type) if needed.

you’re gonna hate me for this probably but it might be better, but require a lot of one-time conversion work if we could specify containers in the spawn lists, something to the effect of

…Not sure if I worded that properly but yeah…

I think I’d like to see a better overall handling system for liquids (so we could have various liquids spawning in various containers, with easy transfer between them without problems) go in before we start messing with things that the current system won’t be able to take much advantage of (as is, with the exception of a few things like water the game assumes that a lot of liquids are going to be only stored in their appropriate containers).

Maybe with this we can just shove a rag into the bottle for molitov cocktails with this.