XNet · Addon guide · Intermediate
XNet Gases Guide: How to Route Mekanism Gases & Chemicals
Setting up Mekanism's multi-tier ore processing usually results in a messy nightmare of Pressurized Tubes, Universal Cables, and Logistical Transporters. By using XNet along with the XNet Gases addon, you can condense your entire 3x or 4x ore processing line—including Oxygen, Hydrogen Chloride, and Slurries—into a single, lag-free cable behind your machines. This guide will walk you through routing Mekanism gases and chemicals cleanly using an XNet Controller and Advanced Connectors.
What you need
- XNet mod and the XNet Gases addon installed (alongside Mekanism)
- 1x XNet Controller and a steady Forge Energy (FE) power source
- Network Cables and Advanced Connectors (Blue is recommended for organization)
- 1x Electrolytic Separator and 1x Water source (e.g., Sink or Aqueous Accumulator)
- Mekanism 3x/4x Ore Processing machines (Chemical Dissolution Chamber, Chemical Washer, Chemical Crystallizer, Purification Chamber, Chemical Injection Chamber, etc.)
- Gauge Dropper (highly recommended for grabbing gas samples for filtering)
Step by step
1Place the Controller and Connect Advanced Connectors
Set down your XNet Controller and supply it with power using a standard Connector attached to your main energy grid. Next, run Network Cables behind your Mekanism machines, placing an Advanced Connector directly against the back of the Electrolytic Separator, Purification Chamber, Chemical Injection Chamber, and any 4x slurry machines you are using. You must use Advanced Connectors for Mekanism machines because they allow you to access any virtual side of a block from a single physical connection.
Tip: Hold sneak while placing a connector next to another cable or connector of a different color to keep lines separated, though one color is enough for this entire build.
2Configure Mekanism Machine Side I/O
Before touching the XNet Controller GUI, open each Mekanism machine and click the 'Side Config' tab on the left. Switch to the 'Gases' (and 'Slurry' or 'Infuse Types' if applicable) configuration tab. Note which sides are assigned to Input (Red), Output Left (Blue/Purple), and Output Right (Cyan/Yellow), or manually set specific faces like 'Top' for Gas Input and 'Bottom' for Gas Output. Unlike standard Mekanism pipes, XNet pulls directly via the Controller, so you do not need to enable 'Auto-Eject' inside the Mekanism GUI.
Tip: Standardize your Mekanism configs across all machines—for example, always set Top to Gas Input and Front/Left/Right to Specific Outputs—to make programming XNet much faster.
3Create a Mekanism Gas Channel
Open the XNet Controller GUI and select an empty channel column at the top (Channel 1). Click the channel type dropdown menu; with the XNet Gases addon installed, you will see custom channel types such as 'mekanism.gas' (and separate ones for slurry, pigment, and infuse_type depending on your Minecraft version). Select the Gas channel type and set the routing mode at the top right to either Round Robin or First Match.
Tip: You can use the Remaining channels (2 through 8) for Energy, Fluids (Water), and Items (Ores/Clumps/Shards) so your machines only have one block attached to them.
4Extract Oxygen and Hydrogen from the Separator
Locate your Electrolytic Separator in the machine list on the left of the XNet Controller and click twice inside the Channel 1 column to create two separate nodes on the same machine. Select the first node, set it to 'Extract', and change the 'Facing' dropdown from the physical cable side to the specific virtual face your Separator uses for its Left Output (Hydrogen). Select the second node, set it to 'Extract', and set its 'Facing' to match the Separator's Right Output (Oxygen). Adjust the extraction rate and speed (ticks per operation) to match your power generation.
Tip: If you aren't sure which side outputs Oxygen versus Hydrogen, check the colors in the Separator's Gas tab against the colored squares in its Side Config.
5Filter and Insert Oxygen into the Purification Chamber
Find your Purification Chamber in the XNet machine list and click once in Channel 1 to create a connection, setting its mode to 'Insert'. Change the 'Facing' dropdown to match whichever face you configured as the Gas Input on the Purification Chamber. Because Channel 1 currently contains both Hydrogen and Oxygen being extracted from the Separator, you must apply a filter: take a Gauge Dropper, extract a drop of Oxygen from the Separator's tank in its GUI, and click the Dropper into the Filter slot of the Purification Chamber's Insert node.
Tip: In newer versions of JEI, you can also drag and drop the Oxygen gas icon directly from the JEI sidebar into the XNet filter slot without needing a Gauge Dropper.
6Route Hydrogen Chloride for 3x Processing
If you are scaling up to 3x ore processing, connect your Chemical Infuser (producing Hydrogen Chloride) and Chemical Injection Chamber to the network using Advanced Connectors. On the same Gas channel (Channel 1), create an 'Extract' node on the Chemical Infuser facing its Gas Output side. Then, create an 'Insert' node on the Chemical Injection Chamber facing its Gas Input side, and place Hydrogen Chloride in the filter slot using JEI or a Gauge Dropper so it does not accidentally receive Oxygen or raw Hydrogen.
Tip: Use XNet's color filters (Red, Green, Blue, Yellow dots inside the channel nodes) instead of item/gas filters if you prefer not to carry a Gauge Dropper around.
7Set Up a Dedicated Slurry Channel for 4x Processing
In Mekanism v10 and newer, Dirty and Clean Ore Slurries are categorized separately from standard Gases. Click on Channel 2 in your XNet Controller and set its type to 'mekanism.slurry'. Set an 'Extract' node on your Chemical Dissolution Chamber (facing its Slurry Output side) and an 'Insert' node on your Chemical Washer (facing its Slurry Input side). On the exact same Slurry channel, add a second node to the Chemical Washer set to 'Extract' (facing its Clean Slurry Output), and add an 'Insert' node on the Chemical Crystallizer to turn the Clean Slurry into crystals.
Tip: Because a Chemical Washer only accepts Dirty Slurry in its input and only outputs Clean Slurry, you usually don't even need filters on the Slurry channel unless you are running multiple ore types in parallel.
How it works
XNet operates fundamentally differently from Mekanism's Pressurized Tubes. Pressurized Tubes are tile entities that hold an internal buffer of gas; when a machine auto-ejects, the gas enters the pipe network and physically travels or distributes across the pipe inventory. XNet cables, however, have zero internal capacity and are not even tile entities—which is why they cause virtually no lag even across massive factories.
Instead of pipes pushing and holding gases, the XNet Controller scans all 'Extract' nodes on a specific channel every few ticks (defined by the operation speed in the GUI). When it finds a valid gas on an Extract node, it immediately checks all 'Insert' nodes on that same channel for valid destination inventories and matching filters. If a match is found, the Controller teleports the gas directly from the source machine's output tank into the destination machine's input tank, consuming a tiny fraction of FE from the Controller.
The secret to automating Mekanism with a single cable lies in the Advanced Connector's 'Virtual Facing' mechanic combined with Mekanism's strict sidedness. Mekanism machines assign internal tanks (like Input tank, Left Output tank, Right Output tank) to physical block faces (North, South, Top, Bottom). While a standard Connector can only interact with the face it actually touches, an Advanced Connector tricks the Mekanism machine into thinking the cable is touching the Top, Bottom, or Front face, letting you pull from two separate output tanks and push power and items into the same machine simultaneously.
Common mistakes
- Using standard Connectors instead of Advanced Connectors: Standard connectors can only interact with the single block face they are physically attached to. Since Mekanism machines often require separate faces for Gas Input, Gas Output, and Item Input, standard connectors will fail to route everything through one block face.
- Putting Slurries or Infuse Types on a Gas Channel: In modern versions of Mekanism, Gases, Slurries, Infuse Types (like Carbon or Redstone), and Pigments are distinct chemical categories. Trying to extract Dirty Iron Slurry using a 'mekanism.gas' channel will do nothing; you must select the specific 'mekanism.slurry' channel type.
- Forgetting to filter shared Gas Channels: If you extract both Oxygen and Hydrogen onto Channel 1 without filters or color coding on your Insert nodes, XNet will dump the first available gas (often Hydrogen) into your Purification Chamber, completely jamming your 2x ore processing line.
- Mismatched Side Configs and XNet Facings: If you set your Chemical Injection Chamber to accept gas from the 'Top' in Mekanism's Side Config, but leave the XNet Insert node's Facing dropdown set to the default physical cable side (e.g., 'North'), no gas will ever transfer.
FAQ
Why isn't the Gas channel showing up in my XNet Controller?
Base XNet only supports Items, Fluids, Energy, and Logic out of the box. To transfer Mekanism chemicals, you must install the separate compatibility addon mod called 'XNet Gases' (or an equivalent integration mod for your Minecraft version).
How do I dump excess Hydrogen or Oxygen using XNet so my Electrolytic Separator doesn't stall?
You don't need an XNet Trash Can for this! Simply open the Electrolytic Separator's GUI and click the button below the Hydrogen or Oxygen tank to cycle it to 'Dump Excess'. It will keep the tank full for XNet to extract from while automatically voiding any overflow.
How can I filter a gas if I don't have one in an item container and JEI drag-and-drop isn't working?
Use XNet's built-in Color Filtering inside the channel. In the Extract node for Oxygen, enable one of the four colored dots (e.g., Blue). Then, in the Insert node for the Purification Chamber, enable that same Blue dot. The Insert node will now only accept gas coming from Blue-tagged Extract nodes.
Can I upgrade the transfer rate if my 4x ore processing line is consuming gas faster than XNet supplies it?
Yes. Using an Advanced Connector increases the maximum transfer cap and lets you lower the ticks per operation compared to a normal Connector. You can also create two separate Extract/Insert nodes on the same machine within the channel to double the throughput per tick.
By pairing XNet's Advanced Connectors and virtual facing settings with the XNet Gases addon, you can cleanly route every Mekanism gas, acid, and slurry required for 3x and 4x ore processing through a single, high-performance network cable.