Mods / ChemistryLib

Tags:
Technology Library
Author:
Moby_
Side:
Both
Created:
Feb 23rd 2023 at 11:11 PM
Last modified:
Apr 3rd at 9:25 PM
Downloads:
31793
Follow Unfollow 368
Latest release (for Vintage Story 1.21.0-pre.1 - 1.21.6 and 1.22.0-pre.1 - 1.22.0-rc.7, potentially outdated):
chemistrylib-1.2.2.zip  1-click install

This mod is best used with Lavoisier and A Culinary Artillery. Using both mods, all items from ChemistryLib can be made.

 

Note: since the March 31, 2026 rebalance (1.2.0), ChemistryLib is uncompatible with most mods using its acids that haven't received an update since. Kingdom of Science series to be expected shortly.

Also, the quantities noted on the wiki are wrong. You'll need much more liquid component per solid item, on the order of 0.1-1 per litre. Recipes will take much longer to process, since most of them will process the full quantity at once. I'll update the github wiki in the near-ish future, in the meantime you can tinker with it (Lavoisier isn't very sensitive), or check the files (reminder: 100 quantity = 1L for most liquid items)

 

If you find a bug, have a suggestion or want to talk, feel free to join my Discord server!

 

About ChemistryLib

ChemistryLib is a library mod adding a fair amount of common chemicals to Vintage Story.

I first thought about this mod when I saw that multiple mods used sulfuric acid in their recipes, and every mod added their own sulfuric acid: none were compatible with each other. This mod is trying to fix this kind of issue.

This mod is also the reason why I created Lavoisier: I was missing an immersive crafting system to be used as a default for ChemistryLib.

The mod adds the following items:

Acids:
Hydrochloric acid ("Spirit of salt") 
Sulfuric acid ("Oil of vitriol") (1.2.0+: replaced with vanilla sulfuric acid)
Nitric acid ("Spirit of niter")
Hydrofluoric acid ("Spirit of fluorite")
Aqua regia
Acetic acid (glacial; not exactly the same as vinegar)
Pyroligneous acid (wood dry distillation product, contains acetic acid and methanol, mostly)

Alkali:
Sodium carbonate ("Soda ash")
Sodium hydroxide ("Caustic soda")
Potassium hydroxide ("Caustic potash")
Ammonia

Pure elements:
Phosphorus (white and red) note: red phosphorus can be made by simmering white phosphorus, even though it's not stated in the handbook.
Mercury

Minerals:
Calcium acetate
Glauber's salt
Ammonium chloride ("Sal ammoniac")

Organic compounds:
Glycerin
Acetone
Turpentine
Methanol ("Wood spirit")
Coal tar (1.2.0+: replaced with vanilla tar)
Phenolate
Phenol
Benzene
Formaldehyde

Other:
Soap
Seltzer (carbonated water)
Lens (a glass lens)

Mods using ChemistryLib:

Kingdom of Science: Fire & Explosions : adds dynamite (and nitroglycerin to make it) and phosphorus matches.

Simple Alchemy (formerly, up to 2.2.10) : adds potions with various effects, and a potion-making system.

Kingdom of Science: Photographic Memories : adds silver photography to the game.

Pretzels : adds pretzels and lye croissants.

Nearsighted : adds self-inflicted nearsightedness to the game, and more glasses. (uses the lens)

Kingdom of Science: Gold Amalgam Extraction : adds an easier way to extract gold from sand and gravel using mercury amalgamation.

Rusty Shell : adds chemical warfare and incendiary weapons (along with various old cannons)

For modders:

The goal of ChemistryLib is, obviously, to be used by other mods! You can use any of these items just like you would use vanilla items, just use the "chemistrylib:" prefix instead of the "game:" prefix.

Please tell me if you make a mod that uses ChemistryLib so I can list it here.

Also please tell me if you'll need any other chemical that you feel could be widely used (or if it's already used by another mod), or if you see any chemical used by two separate mods, so I can add it here!

Using Lavoisier:

Check the Lavoisier wiki.

Known issues:

The mod has overlapping items with Expanded Matter. They're not technically incompatible, but could be confusing. I found a way to fix that, but have yet to finish implementing it.

 

just adding ChemLib to the page since I call it that most of the time, for referencing

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.2.2 chemistrylib
1.21.0-pre.1 - 1.21.6 1.22.0-pre.1 - 1.22.0-rc.7
664 Apr 3rd at 9:25 PM chemistrylib-1.2.2.zip 1-click install

Fixed mineral alkali barrel recipe

1.2.1 chemistrylib
1.21.0-pre.1 - 1.21.6 1.22.0-pre.1 - 1.22.0-rc.6
83 Mar 31st at 10:44 AM chemistrylib-1.2.1.zip 1-click install

forgot to fix lang files after acid changes (check 1.2.0 patch notes, they're important)

1.2.0 chemistrylib
1.21.0-pre.1 - 1.21.6 1.22.0-pre.1 - 1.22.0-rc.6
10 Mar 31st at 10:34 AM chemistrylib-1.2.0.zip 1-click install
  • Rebalanced ChemistryLib to better match vanilla sulfuric acid (on the basis of 1 item ~0.1-1L, instead of the former 1 item ~0.05-0.01L) PLEASE NOTE: processing times for lavoisier recipes scaled up considerably to make up for it, until Lavoisier can handle partial item processing.
  • Rebalanced Lavoisier sulfuric acid recipes to be better than the vanilla crockpot one
  • Removed ChemistryLib sulfuric acid, recipes replaced to use vanilla sulfuric acid
  • Removed coal tar, now uses vanilla tar
  • All mineral acids change domain to "game:acid-full-*", since vanilla files already plan for hydrochloric and nitric acid (future-proofing)
  • Changed colors of vanilla acids to match OG ChemistryLib (also because no, hydrochloric acid isn't BRIGHT GREEN)

 

Note: this update is largely untested, especially in survival. Please let me know if I forgot something, if something broke or if 

1.1.5 chemistrylib
1.18.2 - 1.18.5 1.19.0 - 1.19.1
21839 Jun 28th 2023 at 3:27 PM chemistrylib-1.1.5.zip 1-click install
  • Edited the Solvay process recipe to use seltzer (mixed with ammonia to make carbonated ammonia) instead of ammonia and charcoal, and produce sal ammoniac as a byproduct
  • Added a way to make ammonia from sal ammoniac (using slaked lime)
  • Halved the making time of nitric acid in a barrel (now 60 days instead of 120)
  • Also the lead chamber process (sulfuric acid) is now properly painfully slow (should take a little under a RL hour per litre), making the upgrade to the contact process actually desirable
1.1.4 chemistrylib
1.18.2 - 1.18.5
1201 Jun 13th 2023 at 5:28 PM chemistrylib-1.1.4.zip 1-click install

Patched some recipes (grinding lenses thanks to Olexnn)

Added french and ukrainian translation

1.1.3 chemistrylib
1.18.2 - 1.18.5
470 Jun 11th 2023 at 9:11 AM chemistrylib-1.1.3.zip 1-click install

Actually fixed the phosphorus recipes (I only fixed the coke recipe before)

1.1.2 chemistrylib
1.18.2 - 1.18.5
575 Jun 7th 2023 at 2:36 PM chemistrylib-1.1.2.zip 1-click install

Lowered the cooking point of white phosophorus so it's actually craftable (it wasn't before). It's less realistic, but at least you can make it while I think about a more elegant solution

1.1.1 chemistrylib
1.17.10 - 1.17.11 1.18.0 - 1.18.1
2731 Mar 12th 2023 at 5:24 PM chemistrylib-1.1.1.zip 1-click install

Fixed handbook guide

1.1.0 chemistrylib 1218 Mar 12th 2023 at 2:22 PM chemistrylib-1.1.0.zip 1-click install

Added ammonium chloride and lenses

Also there should be a handbook entry now

1.0.7 chemistrylib
1.17.10 - 1.17.11
673 Mar 3rd 2023 at 2:42 PM chemistrylib-1.0.7.zip 1-click install

Fixed sulfuric acid contact process

1.0.6 chemistrylib
1.17.10 - 1.17.11
398 Mar 3rd 2023 at 2:20 PM chemistrylib-1.0.6.zip 1-click install

Fixed liquid simmering recipes

1.0.5 chemistrylib
1.17.10 - 1.17.11
402 Mar 2nd 2023 at 1:54 PM chemistrylib-1.0.5.zip 1-click install

Fixed the recipes for artificial saltpeter and white phosphorus (using coke)

1.0.4 chemistrylib
1.17.10 - 1.17.11
371 Mar 2nd 2023 at 10:23 AM chemistrylib-1.0.4.zip 1-click install

Added seltzer water

Added all recipes

1.0.3 chemistrylib
1.17.10 - 1.17.11
396 Feb 26th 2023 at 12:19 PM chemistrylib-1.0.3.zip 1-click install

Fixed: I messed up the alkali, now they should work

1.0.1 chemistrylib
1.17.10 - 1.17.11
382 Feb 24th 2023 at 11:24 AM chemistrylib-1.0.1.zip 1-click install

Fixed crash when trying to empty a container filled with a acetic acid nd pyroligneous acid

Fixed acetic acid texture

1.0.0 chemistrylib
1.17.10 - 1.17.11
380 Feb 23rd 2023 at 11:14 PM chemistrylib-1.0.0.zip 1-click install

First release


22 Comments (oldest first | newest first) (threaded | flat)

wojtek16, Apr 2nd at 1:50 PM

Just to update my previous message, it was a different mod causing the issue, sorry again for wasting your time Moby, hope you didn't go too deep into investigating this! 

wojtek16, Apr 1st at 12:50 PM

Don't pain yourself with it just yet, I'm doing some testing from my side to see, I did install the Enchantment table mod along when I updated yours to our server, so I'm guessing that this might be the issue. I did test things out on a singlplayer world and it worked fine but seems to be crashing the MP one. I'll update this if I do find the issue behind it later today. 

 

Appreciate all you do Moby!

Moby_ , Apr 1st at 11:17 AM

wojtek16 I'll check, but ChemistryLib is a 100% json mod, so I don't really see how it could cause that kind of problem. I'll still check, though

wojtek16, Apr 1st at 2:31 AM

Not sure if this might be the mod causing an issue but any item I right click or break in my world seems to crash the server, anyone run into this?

wojtek16, Apr 1st at 12:05 AM

We are so back

DUCATISLO, Mar 31st at 12:36 PM

epic

Moby_ , Jun 3rd 2025 at 5:15 PM

Resserfi yeah, but I have to rewrite lavoisier first (i'll tackle that very soon)

 

To clarify why I have to rewrite lavoisier, the way lavoisier works is by processing items 1 by 1, however because of the addition of vanilla sulfuric acid, with liters of it being made with single-digit items, I'm going to have to process not full items but fractions of items to output the standard 0.01L

 

I could technically update it now but it would mean like, waiting for half an hour then having everything processed at once

Resserfi, Jun 3rd 2025 at 3:58 PM

Moby_ Can u uptade it to 1.20?

Moby_ , Mar 3rd 2025 at 1:04 PM

Even though Lavoisier is fixed, my official position is to not use ChemistryLib right now: there's going to be a massive rebalancing update (to balance around the vanilla sulfuric acid recipe, which is currently completely separated from the ChemLib sulfuric acid), but said rebalancing will require a more in-depth Lavoisier update (actually closer to a rewrite)

So, you can play with it now to scratch that itch, but keep in mind that it's going to change, and chemicals are going to get much cheaper

Moby_ , Sep 13th 2024 at 9:57 AM

RagondinMan Backwards compatibility is my top priority for this rewrite, so it shouldn't break anything (including potential mods that use it: the new version will be able to parse the old crafting recipes). You might have to break and place again some components though (to reset the block entity), but the goal is to not have it be more than that.

RagondinMan, Sep 12th 2024 at 12:36 PM

Moby_ oh cool cool!

about your comment with a rewrite, do you think itll break existing saves? or will it be a smooth transition

Moby_ , Sep 11th 2024 at 7:27 AM

RagondinMan Yeah, it's going to work on an existing save, this doesn't change the worldgen in any way so won't be an issue

Moon_Dew I'm planning to revisit this, it's long overdue for an update (lavoisier and chemistrylib were my first mods so that update is probably going to be a complete rewrite + a bunch of new features for Lavoisier, implemented into chemistrylib). I'm not really waiting for 1.20, mostly waiting for IRL stuff to settle (should be good by the end of this year I hope).

RagondinMan, Sep 10th 2024 at 9:12 AM

can you add this mid save?

Moon_Dew, Aug 13th 2024 at 7:54 PM

Any plans on updating this and related mods soon, or are you waiting for version 1.20 to drop?

RomixERR, Mar 23rd 2024 at 11:22 AM

Made a translation into russian. Also added recipes from the Lavoisier mod. For 1.1.5 version.

UP: Added recipes for Kingdom of Science: Gold Amalgam Extraction and Kingdom of Science: Fire & Explosions.

Added names acids, such as Sulfuric acid, Hydrochloric acid, etc.

ru.json

 

Rinly, Feb 17th 2024 at 3:27 AM

Kind of odd storing all these powerful acids in just wooden buckets...

Moby_ , Nov 28th 2023 at 11:43 AM

qgame Thank you for the feedback! I'm aware of that bug, iirc it used to be game:leather and changed, and I never changed it. It's on the top of the to-do list.

I'm probably going to add more ways to make ammonia in the future too. Maybe not the Haber process (I'll add it if I add tiered chemical apparatuses and make it a steel apparatus exclusive) but at least other "distill organic materials" recipes

qgame, Nov 17th 2023 at 11:45 PM

Hey, a friend and I recently added this to our server (current version of the game and your mod) and we found out, that the mod has a bug in the recipe for "ammonialeather" The recipe didn't work for us at all, but we fixed it by changing the line ["code": "game:leather"] to ["code": "game:leather-plain"] in \Mods\chemistrylib-1.1.5.zip\assets\chemistrylib\recipes\alembic\retort\alkali.json. (the compost version of the same recipe works without any issue)

I just wanted to let you know of that. Thanks for your mod, it's a lot of fun to use!
have a nice day.

Moby_ , Jun 20th 2023 at 7:42 AM

conninator2000 You actually need a cauldron to make it. Cauldrons can go up to 900°C (which would be a bit cold IRL, I'm thinking about adding a chemistry oven to reach higher reaction temperatures), and I don't even think that saucepans can fit enough items to make phosphorus.

conninator2000, Jun 20th 2023 at 3:28 AM

Looks super cool but I am having some trouble with phosphorus. Both the wiki and the guide say to just "boil" it in a saucepan, the saucepan recognizes the recipe and just sits at 400C without the progress bar moving

l33tmaan, Mar 13th 2023 at 5:06 AM

Neato. I could use some of this weirdo stuff in Expanded Foods. Like the nitric acid!

Frepo, Mar 11th 2023 at 12:03 PM

Well done! Thank you for this!!