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

Raw OresForge Energy (FE)Script VariablesBalanced Export PredicRaw OresRaw OresCrushed Ore / DustsCrushed Ore / DustsSmelting Route SignalCrushed Ore / DustsCrushed Ore / DustsRefined IngotsRefined IngotsInput Chest (Raw Ores)INPUTEnergy BatteryPOWERScripting Terminal &Disk DriveCONTROLVariable StoreCONTROLItem Interface (InputBuffer)LOGISTICSItem Exporter (ToSqueezers)LOGISTICSMechanical SqueezerArray (x8)MACHINEItem Importer (FromSqueezers)LOGISTICSItem Interface (DustBuffer Chest)STORAGEItem Exporter (ToFurnaces)LOGISTICSBlast Furnace Array (x8)MACHINEItem Importer (FromFurnaces)LOGISTICSOutput Chest (RefinedIngots)OUTPUT
InputMachinePowerStorageLogisticsOutputControlItemEnergySignal

Materials

ItemCount
Mechanical Squeezer8
Blast Furnace8
Logic Cable48
Item Interface11
Item Exporter16
Item Importer16
Energy Interface8
Energy Exporter1
Energy Battery2
Scripting Terminal1
Scripting Disk Drive1
Scripting Disk1
Variable Store2
Logic Programmer1
Labeller1
Variable Card24
Inventory Reader16
Chest6

Build it step by step

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

More Integrated Dynamics designs

Integrated Dynamics · Mid gameAutomated Botania Mana & Livingrock Production LineThis mid-game cross-mod automation setup pairs Integrated Dynamics and its standard addons with Botania's Pure Daisy to effortlessly produce Livingrock and Livingwood. By utilizing World Block Exporters, World Block Importers, and Block Readers, it monitors block states in real-time to place raw materials and harvest the transmuted results the exact tick they finish converting. Building this removes the tedious manual placement required for foundational Botania crafting and mana generation infrastructure.Intermediate8 steps
Integrated Dynamics · Mid gameCentral Storage & Auto-Crafting HubThis setup provides a complete Applied Energistics 2 alternative using Integrated Dynamics alongside its official addons: Integrated Terminals, Integrated Tunnels, and Integrated Crafting. It binds a massive array of standard chests into a single searchable UI while enabling on-demand recursive auto-crafting using a fraction of the power and resources required by conventional digital storage mods.Intermediate8 steps
Integrated Dynamics · Late gameLogic-Controlled Reactor Monitoring & Failsafe SystemThis setup provides an automated, high-precision monitoring and failsafe system for late-game reactors using Integrated Dynamics. By reading real-time energy saturation, internal temperatures, and fuel buffers, it dynamically toggles reactor operation to prevent waste and catastrophic meltdowns. Building this guarantees base safety while providing a live, customizable status wall in your control room.Advanced7 steps
Integrated Dynamics · Early gameMax-Tick-Rate Cobbleworks & Menril Power PlantThis early-game setup leverages Integrated Dynamics and its addon, Integrated Tunnels, to create an ultra-fast cobblestone and Menril wood farm. By overriding the default operation speed of World Block Importers and Exporters down to a single tick, this compact facility generates infinite stone resources while harvesting its own Menril trees to keep a battery bank permanently charged.Beginner6 steps
Integrated Dynamics · Mid gameNBT-Filtered Mob Farm Loot Sorter & RecyclerHigh-yield mob farms quickly choke standard storage systems with damaged bows, leather armor, and randomly enchanted gear. This Integrated Dynamics setup inspects the exact NBT data and damage tags of incoming drops in real-time to separate valuable stackables, enchanted gear, and recyclable equipment. By automating the evaluation of complex item properties at zero energy cost for the logic network, you keep your storage clean while salvaging iron and gold from trash drops.Intermediate6 steps