All the Mods Factory Guide
Mekanism and AE2

Mekanism and AE2

Chemicals in the ME network through Applied Mekanistics, why side configuration decides everything, pattern providers on Mekanism machines, and the packs' 5× ore chain as an autocrafting job.

Applies to: ATM-10 8.6 · All the Mons 2.2.0

Versions: Mekanism 10.7.19, AE2 19.2.19 in ATM-10 and 19.2.20 in All the Mons, Applied Mekanistics 1.6.3 measured · Mekanism source · AE2 source · Applied Mekanistics source · issues

Mekanism has no AE2 code, and AE2 on its own stores only items and fluids. Applied Mekanistics is the whole bridge. Everything on this page was read from the three mods’ source at the versions above, and from the packs’ scripts and configs. ATM-11 has no Mekanism.

What the bridge adds#

  • Chemicals become an ME storage type. In Mekanism 10.7, gases, infuse types, pigments and slurries are all one kind of thing, a chemical, and Applied Mekanistics stores all of them. Amounts behave like fluids: shown in buckets, 125 mB per bus operation, and 8 buckets per byte of cell space. read
  • Chemical storage cells, 1k to 256k, and portable ones. Each cell holds up to 5 chemical types. The housing takes quartz glass, redstone and osmium. read
  • Buses and pattern providers handle chemicals. Import, export and storage buses, and pattern providers, reach a Mekanism block’s chemical tanks the same way they reach item slots. A chemical P2P tunnel carries chemicals too. read
  • Interfaces and pattern providers accept chemicals pushed into them. That is what lets a Mekanism machine eject its chemical output straight back into the network. read
  • QIO in the ME network. A storage bus on a QIO Dashboard shows that QIO frequency to the ME network, items only. QIO has no autocrafting of its own, so in these packs AE2 does the crafting even in a Mekanism base. read

Radioactive chemicals#

Ordinary chemical cells refuse radioactive chemicals, such as nuclear waste. A Void Card won’t void them, and the Matter Condenser won’t take them. read

The exception is MEGA’s Radioactive Chemical Cell. Both packs let it store spent nuclear waste, and both make its cell component expensive: a 64M cell component, accumulation processors, two radioactive waste barrels and antimatter pellets. measured (ATM-10’s recipe)

Side configuration decides everything#

Applied Mekanistics talks to a Mekanism block through the one face the bus or pattern provider touches, and Mekanism answers by that face’s side configuration. read

  • A side set to an input mode takes inserts into the slots or tanks mapped to it. A side set to an output mode allows extraction. Point pattern providers and export buses at input sides, import and storage buses at output sides.
  • A disabled side shows nothing at all.
  • A type the machine has no side config for shows every slot on every side.
  • Mekanism refuses inserts and extracts that don’t name a side, which is why a bus always has to face the machine directly.

Auto-eject is the way back. An output side with eject on pushes chemicals, fluids and energy every tick, and items every 10 ticks. Point it at an interface or a pattern provider and the result goes into the network, chemical or item. read

Pattern providers on Mekanism machines#

How a pattern provider decides, from AE2’s source: read

  • A partial fit is enough. It pushes a pattern to a face if the machine accepts some of every input. Whatever doesn’t fit waits in the provider and goes in as space frees up.
  • Blocking mode skips a face while the machine still holds any input of any pattern in that provider. Use it on every Mekanism machine, or a second batch mixes into the first.
  • “Until result” lock counts only results that come back through the provider itself. Results that reach the network another way don’t unlock it.
  • Every output you encode is awaited. Encode a byproduct only if the job needs it; anything not encoded just goes to storage.

Don’t encode the per-tick chemicals. Oxygen, hydrogen chloride and sulfuric acid are used up per tick while a machine runs, not per item, and upgrades change how much. Supply them separately, by tube from your chemical plant or by an export bus, and encode only the items. estimate

Upgrades at the packs’ settings#

Both packs raise Mekanism’s maxUpgradeMultiplier from 10 to 16, and every upgrade formula is built on it. With s speed upgrades out of 8: read

Formula8 speed, nothing else
Ticks per operationbase × 16^(−s/8)200 → 12.5
Energy per tickbase × 16^((2s − e)/8)×256, so ×16 per operation
Chemical per tick, in the Purification, Injection and Dissolution chambersbase × 16^((2s − c)/8)×256, so ×16 per operation

Here e and c are energy and chemical upgrades. Eight of each bring the cost per operation back to the base. Only those three chambers take chemical upgrades. The Washer and Crystallizer take speed, energy and muffling, and use chemicals at 16^(s/8) per tick: the same per operation however fast they run. ATM-10 also turns off Mekanism’s random chemical use (randomizedConsumption = false); All the Mons leaves it on. measured

Worked build: the 5× chain on autocraft#

What the packs change#

No Mekanism ores or salt generate in either pack: both turn off all six of Mekanism’s ore features. measured The ores you mine instead are AllTheOres’. estimate

For 13 AllTheOres metals (aluminum, nickel, platinum, silver, iridium, zinc, tin, lead, uranium, osmium, copper, iron, gold) the packs replace four steps of the chain: measured (ATM-10’s script)

StepMachineMekanismThe packs
WashChemical Washer1 dirty + 5 water → 1 clean5 dirty + 25 water → 3 clean
Crystal → shardChemical Injection Chamber1 → 11 → 2
Clump → dirty dustCrusher1 → 11 → 2
Dirty dust → dustEnrichment Chamber1 → 14 → 3

Dissolving and crystallizing come from AllTheOres: 1,000 mB of dirty slurry per ore, 2,000 mB per 3 raw ore, 200 mB per crystal. read (AllTheOres 3.1.7)

Allthemodium, vibranium and unobtainium get the same four steps, but their dissolving comes from the Allthemodium mod, which isn’t covered here. For the 13 AllTheOres metals, put together, that gives: estimate

InputMekanism’s 5×The packs’ 5×The packs’ 4× (shards)
1 ore block5 dust9 dust6 dust
3 raw ore10 dust18 dust12 dust
1 raw block30 dust54 dust36 dust

3 raw ore

2000 mB dirty

1200 mB clean

6 crystals

12 shards

12 clumps

24 dirty dust

18 dust

Pattern provider
blocking mode

Dissolution
+ sulfuric acid

Washer
+ water

Crystallizer

Injection
+ HCl

Purification
+ oxygen

Crusher

Enrichment

Interface
into the network

Building it#

  1. Chemicals first. Run sulfuric acid to the Dissolution Chamber, water to the Washer, hydrogen chloride to the Injection Chamber and oxygen to the Purification Chamber, continuously. Pressurized tubes from your plant work; so does an ME export bus with the chemical set, which Applied Mekanistics makes possible.
  2. Chain the machines by side config. Each machine ejects its output into the next one’s input side: slurry by tube or direct contact, items by eject.
  3. The last machine ejects into an interface on the network. Any insert into the network reaches the crafting CPU first, so the job sees its dust arrive. read
  4. One processing pattern: 3 raw ore in, 18 dust out, or 1 raw block in, 54 dust out. The amounts divide exactly at every step. Put it in a pattern provider facing the Dissolution Chamber’s input side, with blocking mode on. estimate
  5. Smelt in the chain if you want ingots: add an Energized Smelter after the Enrichment Chamber and encode ingots as the output.

Scaling it#

Mekanism has factories for enriching, crushing, purifying and injecting, but none for dissolving, washing or crystallizing. read The front end of the 5× chain is the bottleneck, so build several chains rather than one fast one:

  • Give each chain its own pattern provider holding the same pattern. For each pattern, the crafting CPU tries every provider that has it and skips the busy ones. read
  • Blocking mode keeps a chain from taking a new batch while raw ore is still in its Dissolution Chamber. Once it’s dissolved, the next batch goes in while the slurry is still working down the line.
  • A crafting CPU starts at most co-processors + 1 pattern pushes every 3 ticks, so add co-processors as you add chains. read
  • Speed upgrades help most on the three front-end machines. The Dissolution Chamber’s acid use climbs with them unless you add chemical upgrades too; the Washer and Crystallizer cost only more energy (above).

Where the packs tie Mekanism to AE2#

Not automation, but progression: measured

  • The Improbable Probability Device needs antimatter pellets, an AE2 singularity and MEGA 256M portable item cells (ATM-10 also takes blastproof casings in their place), and it goes into the ATM star.
  • Infinity gravel and sand cells (ExtendedAE) each take two Mekanism Crushers.
  • Mekanism More Machines’ recipes for AE2, Advanced AE, ExtendedAE and MEGA items are removed.
8 min readLicence