Mods / Lavoisier

Category: #Crafting #Library #Technology
Author: Moby_
Side: Both
Created: Feb 21st 2023 at 10:05 PM
Last modified: Jul 25th 2023 at 11:21 AM
Downloads: 23994
Follow Unfollow 294

Latest file for v1.19.1:
lavoisier-1.3.0.zip 1-click install


WARNING: This mod doesn't really adds anything besides the chemistry crafting system, it's meant to be used by other mods as a library. You can use ChemistryLib or Alchemistry if you want some things to make.

 

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

The mod The Twelve Keys adds an alchemy merchant that sells retort parts!

About the mod

Lavoisier (named after Antoine Lavoisier, the father of chemistry) is a mod that adds a new crafting system based on early chemistry (right when it stopped being alchemy). This mod adds a new modular, multi-block chemistry apparatus, that can be used for anything from simple distillation to complex chemical synthesis.

This mod is a library: it's meant to be used along other mods that would add actual content (the mod by itself adds support for all boiler/condenser distillable liquids, using a boiling flask and a retort neck).

 

In Lavoisier, you will find a few new blocks:

The boiling flask, meant as a starting point for all synthesis. You can put both a solid and a liquid in a boiling flask to react (similar to a barrel), and after the reaction is complete, you can find up to one liquid and one solid byproduct inside.

The retort neck, that can be used to collect liquids after they reacted (don't forget to add a bowl to collect your distillate!). Including the byproducts, this crafting system can output up to two liquids and one solid.

The dissolver, that can, much like the retort neck, collect products after they reacted. The dissolver, however, can be filled with a liquid that will be used as another input, making it possible to use two liquid inputs in recipes. The dissolver can also gather both liquid and solid outputs.
To access the product content of a dissolver, you can right click it with an empty hand to collect a solid, or empty the reacting liquid first to access a liquid product.

Many components (the condenser, the reaction chamber, the reflux column and the catalyser for now) that are used to make more complex setups.

 

Be careful: you can only connect a single apparatus to another, and they have to all be oriented in the same direction (the boiling flask, having no orientation, can be placed however you like though)

 

Adding recipes and components

Adding new apparatus components and new recipes can be done purely using .json modding. A tutorial can be found in the wiki.

Here is an example of a recipe (the mead recipe doesn't actually involves salt, it's just to give an example)

Recipe example

{
   "code": "distillingmeadcider",
   "setup": [ "alembicboilingflask", "alembicretortneck" ],
   "ticksPerItem": 40,
   "liquidInput": {
      "type": "item",
      "code": "game:ciderportion-mead",
      "stackSize": 10
   },
   "solidInput": {
      "type": "item",
      "code": "game:ciderportion-mead",
      "stackSize": 1
   },
   "product": {
      "type": "item",
      "code": "game:spiritportion-mead",
      "stackSize": 1
   },
   "liquidByproduct": {
      "type": "item",
      "code": "game:waterportion",
      "stackSize": 9
   },
   "solidByproduct": {
      "type": "item",
      "code": "game:salt",
      "stackSize": 1
   }
}

Other possible setup components are "alembiccomponent-catalyser", "alembiccomponent-reactionchamber", "alembiccomponent-condenser" and "alembiccomponent-refluxvertical". Please note that all setups must start with a boiling flask, and it's recommanded to end with a retort neck if you want to have more than only byproducts.

If you want to add dissolver recipes, use another item stack named "endInput" which represents the dissolver's content. This has to be a liquid, or the recipe can't be matched. You should also end your setup with "alembicdissolver".

Please note that the game will stop checking for setup components after it finds a retort neck, so if you add components after a retort neck in your recipe, it will never be matched.

Please also note that you have to use stackSize even for liquids. For some reason, I can't get litres to parse correctly. Usually it's 1 item for 0.01L.
The "ticksPerItem" property represents the time it takes for the recipe to be handled once, 1 tick = 50 ms.
Be cautious: the mod doesn't check what you're doing and just lets you do it, and the game might not like it if, for instance, you try to put a solid item inside a liquid container. The game might also straight up crash if it fails to resolve an item sometimes.

 

If you want to add components, the only thing you have to do is make them orientable and make sure their item id starts with "alembic". The part right before the orientation (items have codes like "lavoisier:alembiccomponent-refluxvertical-north") should also end with "vertical" if your component is meant to be placed on top of another. You can look at the alembic component json for reference.

 

Development

Roadmap:

  • Make a tutorial on how to create components and recipes
  • Make an in-game handbook tutorial explaining how the system works
  • Adding a new start block: the electrolysis flask (when the Electricity mod is installed)
  • Add more sounds
  • Randomised/mutliple byproducts/byproduct tables
  • Maybe some way to have medium-scale production, I'm not sure I really want to add it but maybe funnels to automatically feed (or at least empty an output) stuff?
  • Tiered components (clay, glass, copper)
  • A new synthesis system: the athanor (reaction furnace, for higher temperatures)
  • Add explosion risk when recipes are done poorly (got too hot, not the right tier...)
  • Add actual temperature of reactions, and make it require fuel to heat

I am also planning to make more mods that will use Lavoisier in the (relatively) near future, including:
- A medicine mod, adding some antibiotics and other drugs
- Maybe an engines and transportation mod, since ChemistryLib adds explosive fuels
- Advanced metallurgy, like aluminium and titanium
- PetrochemistryLib, an expansion of ChemistryLib for petrol products (paraffin, bitumen, fuels, cheap benzene...)

 

Known issues:

  • The condenser and the catalyser models don't connect correctly to the reflux column. They work just fine when using in recipes, but they look bad
  • If you don't have the correct amounts of reagents, it won't react but it will still say "Will create [...]". It shouldn't say it (or should have another message saying that you don't have the correct amounts).
  • When a dissolver finishes reacting and is empty, the last portion of liquid won't be transferred to the accessible liquid slot (for unknown reasons)

 

Translations:

English and French by myself

Ukrainian by Olexn

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.3.0 16214 Jul 25th 2023 at 11:21 AM Show lavoisier-1.3.0.zip Install now
v1.2.8 2452 Jun 1st 2023 at 11:25 AM Show lavoisier-1.2.8.zip Install now
v1.2.7 1617 Apr 22nd 2023 at 11:57 AM Show lavoisier-1.2.7.zip Install now
v1.2.6-pre.1 1061 Mar 5th 2023 at 11:32 AM Show lavoisier-1.2.6-pre.1.zip Install now
v1.2.6 488 Mar 3rd 2023 at 4:28 PM Show lavoisier-1.2.6.zip Install now
v1.2.5 209 Mar 3rd 2023 at 3:26 PM Show lavoisier-1.2.5.zip Install now
v1.2.4 181 Mar 2nd 2023 at 10:25 AM Show lavoisier-1.2.4.zip Install now
v1.2.3 194 Feb 25th 2023 at 5:22 PM Show lavoisier-1.2.3.zip Install now
v1.2.2 168 Feb 25th 2023 at 5:14 PM Show lavoisier-1.2.2.zip Install now
v1.2.1 189 Feb 24th 2023 at 11:02 PM Show lavoisier-1.2.1.zip Install now
v1.2.0 201 Feb 23rd 2023 at 11:22 PM Show lavoisier-1.2.0.zip Install now
v1.1.3 167 Feb 23rd 2023 at 9:54 PM Show lavoisier-1.1.3.zip Install now
v1.1.2 157 Feb 23rd 2023 at 7:48 PM Show lavoisier-1.1.2.zip Install now
v1.1.1 173 Feb 23rd 2023 at 10:42 AM Show lavoisier-1.1.1.zip Install now
v1.1.0 180 Feb 22nd 2023 at 7:23 PM Show lavoisier-1.1.0.zip Install now
v1.0.1 169 Feb 22nd 2023 at 2:18 PM Show lavoisier-1.0.1.zip Install now
v1.0.0 174 Feb 21st 2023 at 11:07 PM Show lavoisier-alpha1.0.0.zip Install now

17 Comments (oldest first | newest first)

💬 ImRender, 3 days ago

UPDATE TO 1.20 PLEASEE

💬 Linek, Oct 15th at 7:09 PM

Wanna update your mod to 1.20 game version?

💬 DarkWalf88, Oct 1st at 10:12 AM

ty man

 

💬 Moby_Author, Oct 1st at 9:41 AM

DarkWalf88 As far as I know it does. Some things might break in 1.20 (dimension awareness isn't really optional anymore), but 1.19.8 shouldn't be an issue. 1.19.0 wasn't, and the code didn't changed much

💬 DarkWalf88, Oct 1st at 9:09 AM

Moby_   does the mod work in 1.19.8? It's the last stable version before 1.20.x.

💬 RagondinMan, May 19th at 8:03 AM

ty!

💬 Moby_Author, May 18th at 9:40 PM

RagondinMan it's not touching worldgen in any way so it's fine to add it to an existing world :D

💬 RagondinMan, May 18th at 9:06 PM

can this be added to a world?

💬 Rexxia, May 6th at 6:26 AM

Yes an alchemy mod is essential for this!

 

💬 RomixERR, Mar 25th at 11:59 AM

Russian lang translation

ru.json

💬 GrimoireODS, Dec 26th 2023 at 2:45 PM

I agree big time with Filvandrel

💬 Filvandrel, Jul 16th 2023 at 8:37 AM

This would be a great thing to integrate with the Alchemy mod, it would make the process of making potions more immersive :D

💬 actuallyasriel, Jul 15th 2023 at 12:23 AM

OMG, someone made the idea I wanted to do!! Very well done. :) Might slam out an addon or two for this.

💬 Moby_Author, May 24th 2023 at 12:01 PM

Leightz0g If by msg you mean monosodium glutatmate, there's everything needed to make it in ChemistryLib, I thought about it recently and I was planning to ask l33tmaan if he wants it for Expanded Foods.

It's not there right now, but I'm definitely considering it

💬 Leightz0g, May 24th 2023 at 11:22 AM

can i make msg

💬 HoosierDaddy, Feb 23rd 2023 at 4:27 PM

Nice! I'll be watching.

💬 Bogrin, Feb 22nd 2023 at 5:46 PM

A brilliant and vanilla-friendly addition!

(edit comment delete)