Integrated Dynamics · End game
Scripted Multi-Step Ore Processing Factory
This endgame ore processing facility uses Integrated Dynamics and its companion addons (Integrated Tunnels and Integrated Scripting) to dynamically route raw ores across arrays of Mechanical Squeezers and Mechanical Drying Basins. By replacing messy Variable Card chains with a centralized JavaScript program on a Scripting Drive, the system calculates real-time inventory load balancing to eliminate machine idling and maximize ingot yields. It is the ultimate tick-efficient, zero-bottleneck refining solution for high-tier quarry inputs.
- Footprint
- 11x7x4 blocks
- Power
- ~1.5 to 3 kFE/t at full load (check JEI for modpack configs)
- Throughput
- ~4 to 8 raw ores/sec across parallel arrays
- Difficulty
- advanced
Flow diagram
How items, fluids and energy move through the setup, left to right.
Swipe sideways to see the whole diagram
Materials
| Item | Count |
|---|---|
| Mechanical Squeezer | 8 |
| Blast Furnace | 8 |
| Logic Cable | 48 |
| Item Interface | 11 |
| Item Exporter | 16 |
| Item Importer | 16 |
| Energy Interface | 8 |
| Energy Exporter | 1 |
| Energy Battery | 2 |
| Scripting Terminal | 1 |
| Scripting Disk Drive | 1 |
| Scripting Disk | 1 |
| Variable Store | 2 |
| Logic Programmer | 1 |
| Labeller | 1 |
| Variable Card | 24 |
| Inventory Reader | 16 |
| Chest | 6 |
Build it step by step
1Lay the Machine Arrays
Place 8 Mechanical Squeezers in a straight row with a 1-block gap behind them for cabling. Parallel to this row, place 8 Blast Furnaces (or powered furnaces from your modpack). Place double chests at one end for Raw Ore Input, in the middle for an intermediate Crushed Ore Buffer, and at the far end for Final Ingot Output.
2Attach Tunnels and Readers
Attach an Item Exporter and an Inventory Reader to the top of every Mechanical Squeezer and Blast Furnace. Attach Item Importers to the bottom of all 16 machines to extract finished products. Place Item Interfaces on the Input Chest, the Intermediate Buffer Chest, and the Output Chest.
3Connect Power Infrastructure
Place Energy Interfaces on the back of all 8 Mechanical Squeezers. Place your Energy Batteries near the start of the line with an Energy Exporter attached, allowing the Integrated Tunnels network to distribute Forge Energy to the Squeezers automatically.
4Wire the Logic Network
Connect every single Reader, Interface, Exporter, and Importer together using Logic Cables to form one unified network. Attach the Scripting Terminal, Scripting Disk Drive, and two Variable Stores to the front control panel of your cable backbone. Insert a blank Scripting Disk into the Scripting Disk Drive.
5Configure Channels for Isolation
Open the GUI for your Item Interfaces and Tunnels to assign distinct channels. Set the Input Chest Interface and Squeezer Exporters to Channel 1. Set Squeezer Importers, the Buffer Chest Interface, and Furnace Exporters to Channel 2. Set Furnace Importers and the Output Chest Interface to Channel 3.
6Bind Inventory Readers
Insert blank Variable Cards into the Inventory Readers on each Mechanical Squeezer on the 'Slot Items' or 'Fill Ratio' aspect. Use the Labeller to name them Squeezer_1 through Squeezer_8, and place all these cards inside the Variable Store so the network can reference their fill states.
7Write the Load-Balancing Script
Open the Scripting Terminal and create a new JavaScript file on your Scripting Disk. Write a script function that evaluates the fill status of each machine from the Inventory Readers and returns a predicate or item stack only when that specific machine has fewer than 4 items in its input slot. Bind the script's boolean or item output to eight new Variable Cards.
8Insert Active Control Cards
Place the 8 script-bound Variable Cards into the 'Export Item' or 'Export Predicate' slots of the Item Exporters sitting on top of the Mechanical Squeezers, and repeat the exact same logic for the 8 Blast Furnaces. Configure all Item Importers on the bottoms of the machines with simple boolean 'True' cards to pull outputs immediately into the next stage.
How it works
In standard Integrated Tunnels networks, a naive Item Exporter setup dumps full stacks of raw ore into the first available machine, leaving the remaining seven machines completely idle during small or medium batch runs. By placing an Inventory Reader on each Mechanical Squeezer and feeding those state variables into an Integrated Scripting program, the network inspects the real-time queue depth of every machine simultaneously.
The Scripting Terminal executes a lightweight script that checks if a target machine's input slot count is below a strict threshold (such as 2 items). If the slot is nearly empty, the script evaluates to true for that specific Exporter, pulsing a single ore into the machine. Because all 8 Exporters evaluate this condition across the network within the same cycle, incoming raw ores distribute evenly in a pseudo-round-robin pattern without complex operator chaining.
Channel separation ensures that items never backflow or mix stages. Channel 1 strictly handles raw ore intake into the Mechanical Squeezers, which crush ores into high-yield dusts (check JEI for exact multiplier ratios per ore type). Channel 2 pulls those dusts into an isolated buffer chest and immediately load-balances them across the smelting array, while Channel 3 clears finished ingots into your base storage.
Upgrades and scaling
- Decrease the tick interval inside the Item Exporters and Importers down to 1 tick to dramatically boost item transfer speeds when handling massive end-game quarry inputs.
- Replace the vanilla Blast Furnaces with powered electric furnaces from other tech mods, using Energy Interfaces on the same Logic Cable line to power them without running separate energy conduits.
- Expand the script to read ore tags and dynamically route specific byproduct-rich ores to specialized washing or chemical chambers while sending standard ores straight to the Squeezers.
- Add a Display Panel to the front of the factory connected to a script function that calculates and displays real-time ores processed per minute and total battery charge.
Common mistakes
- Forgetting to place the underlying Inventory Reader Variable Cards into a Variable Store; if they remain in your player inventory, the Scripting Disk and Exporters will throw a Missing Variable error.
- Leaving all Item Interfaces and Exporters on the default Channel 0, which causes the Squeezer Exporters to accidentally pull smelted ingots or crushed dusts back into the crushing loop.
- Setting the Item Exporter transfer rate to a full stack (64) instead of 1 to 4 items per operation, which bypasses the script's load-balancing threshold in a single tick and floods the first machine.
- Using normal Squeezers instead of Mechanical Squeezers; normal Squeezers require a player or armor stand jumping on them and an external redstone reset pulse.
- Not supplying fuel to the vanilla Blast Furnaces; if using vanilla furnaces, you must add a dedicated Item Exporter on the side face of each furnace filtering Coal or Charcoal.
FAQ
Do I need the Integrated Scripting addon, or can I build this with base Integrated Dynamics?
You can build it with base Integrated Dynamics and Integrated Tunnels using the Logic Programmer, Relational Less Than operators, and Choice operators, but Integrated Scripting reduces dozens of chained Variable Cards down to a single clean script file.
Why are my Mechanical Squeezers running so slowly?
Mechanical Squeezers have a fixed base processing speed and consume Forge Energy per operation. Check JEI for the exact FE cost and duration in your modpack, and simply scale horizontally by adding more Squeezers to the cable line if you need higher throughput.
Does polling 16 Inventory Readers every tick cause server lag?
Integrated Dynamics is deeply optimized, but polling every single tick across massive arrays can add up. You can easily prevent TPS drop by opening the Exporter and Reader settings and changing the evaluation tick interval from 1 tick to 5 or 10 ticks.