PC Empty a Jar?

zztong

Well-known member
Is there a way to empty a jar, other than to drink its contents? Or, I suppose more to what prompted the question, is there a way to empty 60 jars of murky water so that I can have 60 empty jars for a different recipe?

 
I don´t think so. Out of interest: Why not just craft new ones in the forge? Doesn´t take a lof of sand for 60 jars.

 
I don´t think so. Out of interest: Why not just craft new ones in the forge? Doesn´t take a lof of sand for 60 jars.
I didn't think of that. I'm the cook, not the guy running the forges. I could also wait until after a day of raiding and have 60 empty jars.

I just figured there might be an easy way to empty jars.

 
There should be.  It would be far more useful than eating glass and yet that you can do for some reason.

 
There should be.  It would be far more useful than eating glass and yet that you can do for some reason.
Its one of the several things I question why its not in game, being able to dump the contents of a jar to make a empty jar. Been around since a9 or 10 myself, and I been asking this question since then about why this is not an option. Be even better if you could do it from the loot box itself, like you can scrap from the loot box directly, be nice to be able to empty jars from it.

 
For what it's worth, if you add the code below under <item name="drinkJarRiverWater"> in items.xml, it will let you dump murky water back into any water. Can't just dump it anywhere 'cause the "ExchangeItem" action is kinda weird I guess. But it works. Basically you can toggle between empty jars and murky water when looking at water. Dumping it out will not fill add to the water, but I bet that could be fixed by someone smarter than I.

<property class="Action1"> <!-- UseAction -->
<property name="Class" value="ExchangeItem"/>
<property name="Delay" value="1.0"/>
<property name="Change_item_to" value="drinkJarEmpty"/>
<property name="Focused_blockname_1" value="water"/>
<property name="Focused_blockname_2" value="waterMoving"/>
<property name="Focused_blockname_3" value="waterStaticBucket"/>
<property name="Focused_blockname_4" value="waterMovingBucket"/>
<property name="Focused_blockname_5" value="terrWaterPOI"/>
<property name="Sound_start" value="bucketfill_water"/>
</property>


Don't have time at the moment to turn this into a modlet, sorry.

 
I'm testing a modlet for this and hopefully it will allow emptying the jars into air.

Modlet attached. Does not work for "air", but you can pour out on any normal terrain I think, including asphalt. Cannot pour out on non-terrain, but that's only due to my laziness. Feel free to add every block into the "Focused_blockname_xx" list. I have no idea if there's a limit.

Be careful you don't drink the water! It's the right-click action to dump it out - same as you use to fill empty jars.

View attachment BoidsPourOneOut.zip

 
Last edited by a moderator:
Boidster said:
Modlet attached.
Hey, thanks. I tried it and it does work as advertised. That's pretty cool.

I've also been toying with modlets and playing with this recipe...

    <!-- A way to empty jars of mirky water. Nice for inventory and nice for cooking, plus just makes sense. Anyone can empty a jar of water. -->
    <append xpath="/recipes">
        <recipe count="1" name="drinkJarEmpty" craft_time="2">
            <ingredient count="1" name="drinkJarRiverWater"/>
        </recipe>
    </append>




... which is also handy if you have 125 jars of mirky water to be emptied.

 
Last edited by a moderator:
Z-B said:
There should be.  It would be far more useful than eating glass and yet that you can do for some reason.
I believe eating glass was originally added so if you got stuck or something you could use it to kill yourself and respawn. Now, I wish they would take this feature out. In one of my playthroughs I accidentally ate glass, panicked and tried to use a bandage to stop from dying..which of course did nothing.

 
I've also been toying with modlets and playing with this recipe...
Don't know what that exactly does, but exactly the same question came up some time ago here on the forums. The imho best solution that came there was also a modlet that made murky water scrap into empty jars.

If your receipe does that, i said nothing. ;)

 
Ok, then imho scrapping into empty jars is still the way more intuitive solution than crafting.

 
Last edited by a moderator:
Don't know what that exactly does, but exactly the same question came up some time ago here on the forums. The imho best solution that came there was also a modlet that made murky water scrap into empty jars.
Yep, its a recipe with no prerequisites and no workstation needed. It takes 2 seconds to convert a jar of mirky water into an empty jar. You could do that in your inventory, a workbench, or whatever. You could apply it to many jars in one order.

That code is both the XPath stuff to inserts the recipe and the recipe itself.

 
Ok, then imho scrapping into empty jars is still the way more intuitive solution than crafting.
Eh, with scrapping if you only wanted to do say 10 jars out of the 50 you had, you'd have to split the stack first.   With the crafting recipe you can specify exactly how many you want.  Its a really good solution.

 
Yep, you're right, with scrapping you can only do the whole stack or need to divide the stack first.

But crafting usually improves something, while scrapping usually is a downgrade. So if i want to downgrade murky water into empty jars, i'd try to scrap them, not searching for a receipe. That's what i ment with "intuitve".

Since neither way is possible in vanilla, somebody that adds an extra modlet of course knows how to do it. But that doesn't mean it's intuitve.

 
Yep, you're right, with scrapping you can only do the whole stack or need to divide the stack first.

But crafting usually improves something, while scrapping usually is a downgrade. So if i want to downgrade murky water into empty jars, i'd try to scrap them, not searching for a receipe. That's what i ment with "intuitve".

Since neither way is possible in vanilla, somebody that adds an extra modlet of course knows how to do it. But that doesn't mean it's intuitve.
I did look into scrapping before I ended up with the "pour one out" modlet. The problem with scrapping - at least from what I could see - is that the game appears to require a "resource" type item to be the result of scrapping. So you can scrap to wood, fibers, stone, broken glass, etc., but you can't scrap to "empty jar". And you can only scrap to one type of resource which is why you don't get stone and wood back when scrapping a stone axe.

 
I did look into scrapping before I ended up with the "pour one out" modlet. The problem with scrapping - at least from what I could see - is that the game appears to require a "resource" type item to be the result of scrapping. So you can scrap to wood, fibers, stone, broken glass, etc., but you can't scrap to "empty jar". And you can only scrap to one type of resource which is why you don't get stone and wood back when scrapping a stone axe.
Where is the problem? They already did it back than...

Murky water scraps into only empty jars (the scrapping result resource type for murky water then simply is empty jar). Empty jars only scrap into broken glas.

Guns also scrap to their parts. So it's not true that you can only can scrap into "lower" ressource types like wood and stone.

 
Last edited by a moderator:
Back
Top