Integrated Dynamics · Power · Intermediate

How to Build an Automated Menril Power Plant (Generator & Battery Guide)

In this guide, you will learn how to build a self-regulating Menril power plant using Integrated Dynamics and Integrated Tunnels. By reading the fill level of your Energy Batteries, your network will automatically feed wood from a tree farm into your Generators only when power is needed, preventing fuel waste.

What you need

  • Integrated Dynamics and Integrated Tunnels installed (plus any tree farming mod like Industrial Foregoing, Create, or Botany Pots)
  • Generator (Integrated Dynamics coal/solid fuel generator)
  • Energy Battery (several can be combined to increase capacity)
  • Logic Cable (around 16-32)
  • Variable Store (at least 1)
  • Logic Programmer or Portable Logic Programmer
  • Variable Cards (at least 5)
  • Machine Reader (1)
  • Item Interface (1) and Item Exporter (1)
  • Energy Interface (2) or Energy Exporter (1) for power transfer
  • Labeller (highly recommended for naming cards)
  • Automated Menril Tree Farm outputting Menril Logs into a chest

Step by step

  1. 1Set Up the Menril Farm and Physical Machines

    Build an automated tree farm of your choice growing Menril Saplings, and have it output the harvested Menril Logs into a storage chest. Nearby, place your Integrated Dynamics Generator and an Energy Battery directly adjacent to it (or connected via cables). Connect the chest, the Generator, the Energy Battery, and a Variable Store together using a single continuous line of Logic Cables.

    Tip: You can craft multiple Energy Batteries together in a crafting grid to combine their total capacity and transfer rate before placing it down.

  2. 2Connect the Item and Energy Logistics

    Attach an Item Interface to the Menril Log storage chest and an Item Exporter facing the Generator. Next, if your Generator is not directly touching the Energy Battery, place an Energy Interface on the Battery and an Energy Exporter on the Generator (or vice versa) to transfer the generated FE/RF. Your Generator automatically pushes power to adjacent energy blocks, so placing the Energy Battery directly against the Generator saves you two tunnel parts.

    Tip: Check the in-game guide book 'On the Dynamics of Integration' or JEI for exact crafting recipes using Crystalized Menril Chunks.

  3. 3Read the Battery Capacity

    Attach a Machine Reader to the Logic Cable directly facing your Energy Battery. Right-click the Machine Reader to open its GUI and scroll down to find the aspect that reads the current fill ratio (typically a Double value representing the percentage full, or two Integer values for Stored Energy and Max Energy). Insert a blank Variable Card into the 'Energy Stored' slot to create your first variable, and another into 'Max Energy' if there is no direct ratio aspect.

    Tip: Use a Labeller right away to name these cards 'StoredFE' and 'MaxFE' so you do not mix them up later.

  4. 4Calculate the Low-Power Threshold

    Open your Logic Programmer. If you only have an 'Energy Stored' integer card, choose the Relational Less Than (<) operator. However, for a dynamic system, use the Division (/) operator to divide 'StoredFE' by 'MaxFE', or simply create an Integer variable card set to a static number that represents about 80% of your battery's max capacity (check the battery's tooltip in JEI for its exact capacity). Use the Less Than (<) operator to compare your 'StoredFE' card against your 80% threshold card, and write this to a new Variable Card labeled 'NeedsPower'.

  5. 5Define the Fuel Filter

    Still inside the Logic Programmer, search for the 'Item' type to create a constant variable card for fuel. Place a Menril Log (or Menril Planks if you route the wood through a sawmill first) into the slot, and bind it to a blank Variable Card. Label this card 'MenrilFuel'.

    Tip: Enriched Menril Logs also come from Menril trees; if you want to burn those too, consider creating a List variable containing both log types, or convert all logs into planks first.

  6. 6Combine Condition and Item Logic

    In the Logic Programmer, locate the 'Choice' (or ternary/conditional) operator, or prepare to use the Item Exporter's built-in slots. Actually, Integrated Tunnels makes this even simpler: if you just want to export a specific item only when a Boolean is true, you can use the 'Export Item' aspect on the Item Exporter if you only care about the item, OR use a Choice operator to output 'MenrilFuel' when 'NeedsPower' is true, and an empty Item card when false. Create an empty Item variable card (leave the item slot blank in the programmer), then open the 'Choice' operator: put 'NeedsPower' in the condition slot, 'MenrilFuel' in the true slot, and the 'EmptyItem' card in the false slot. Bind the result to a final card named 'ActiveFuelExport'.

  7. 7Store the Underlying Variables

    Open your Variable Store block attached to the network. Place all intermediate Variable Cards ('StoredFE', 'threshold card', 'NeedsPower', 'MenrilFuel', and 'EmptyItem') inside the Variable Store slots. Keep only the final 'ActiveFuelExport' Variable Card in your inventory.

    Tip: Every variable referenced by another variable MUST remain inside a Variable Store on the same network, or the final card will lose its data reference.

  8. 8Activate the Generator Exporter

    Right-click the Item Exporter attached to your Generator. Place the 'ActiveFuelExport' Variable Card into the 'Export Item' green aspect slot. Whenever your Energy Battery drops below 80% capacity, the Exporter will pull Menril Logs from the farm chest and feed the Generator; once it hits 80%, it evaluates to an empty item and stops feeding fuel.

    Tip: You can attach a Display Panel to the cable and insert the 'NeedsPower' card (or a copy of it) to get a visual checkmark showing whether the plant is currently active.

How it works

Integrated Dynamics operates on lazy evaluation and reactive variable references. A Variable Card does not store a static snapshot of data; instead, it stores a pointer to a specific aspect (like the Machine Reader's energy reading) or a mathematical formula referencing other cards by their unique IDs.

When you insert the final 'ActiveFuelExport' card into the Item Exporter, the Exporter asks the network to evaluate that card every few ticks. The network looks inside the Variable Store to trace the chain: it checks the Machine Reader for current energy, compares it against your threshold, and then resolves the Choice operator. If the boolean condition is true, the Choice operator returns the Menril Log item definition, instructing the Integrated Tunnels Exporter to pull matching items from the Item Interface on your farm's chest.

Because the Generator from Integrated Dynamics burns solid fuels completely once inserted, cutting off the fuel supply at around 80% capacity provides a buffer. Any log currently burning will finish its cycle and top off the remaining 20% of the Energy Battery without overflowing and wasting FE/RF into the void.

Common mistakes

  • Leaving dependent Variable Cards in your player inventory instead of putting them in the Variable Store. The Exporter will show an error symbol indicating missing variable references.
  • Crafting copies of variables in the Logic Programmer instead of using the dynamic output from the Machine Reader. You must insert the blank card directly into the Machine Reader's GUI slot to create a live data link.
  • Forgetting to configure the Item Interface channel. By default, Interfaces and Exporters operate on channel 0, so leave both on channel 0 unless you are sharing the cable with another item transfer system.
  • Overfilling the Generator with logs at once. By default, the Item Exporter will push stacks of logs as fast as it can while the battery is below 80%. To prevent it from buffering 64 logs that will burn long after the battery is full, click the '+' button next to the aspect in the Item Exporter GUI and lower the transfer rate or max stack size to 1.

FAQ

Why isn't my Generator pushing power into the Logic Cable?

Logic Cables do not carry FE/RF directly on their own like standard power pipes. You must either place an Energy Battery directly touching the Generator, or use an Energy Interface and Energy Exporter from the Integrated Tunnels addon to move power across the network.

Can I burn Menril Berries or Menril Saplings as backup fuel?

Saplings and wood products work in the solid-fuel Generator, though logs and planks offer much better burn times. You can check JEI for the exact burn time of each Menril byproduct. If you want to export multiple fuel types, use a Predicate or List aspect instead of a single Item aspect.

How do I increase the storage of my Energy Battery?

Craft multiple Energy Batteries and combine them together in a standard crafting table. The resulting single block will combine the capacity and output rates of all the batteries used, up to a configured maximum limit.

Does the Integrated Dynamics network consume power to run this logic?

By default, network energy consumption is disabled in the mod's configuration file. Unless a modpack author or server admin enabled it, your readers, writers, and exporters will evaluate logic without draining your Energy Battery.

By combining a Machine Reader, a Variable Store, and a conditional Choice operator, you now have an intelligent Menril power plant that automatically throttles fuel consumption based on your real-time Energy Battery reserves.

More Integrated Dynamics guides

Integrated Dynamics · Getting startedIntegrated Dynamics Getting Started Guide: Menril, Squeezers & Your First NetworkIntegrated Dynamics is one of the most powerful logic, automation, and logistics mods available, and it all starts with a single blue tree. In this guide, you will learn how to harvest Menril, operate the manual Squeezer and Drying Basin to craft your first components, build a basic reading network, and finally upgrade to powered mechanical machines. Mastering this early resource loop is essential because every cable, terminal, and variable card in the mod family relies on crystallized Menril.Beginner6 steps
Integrated Dynamics · ExplainedVariables, Readers & Writers Explained: How Integrated Dynamics Logic WorksIntegrated Dynamics can seem intimidating at first, as it replaces simple redstone wires with a full programming system based on data types and logic evaluations. In this beginner guide, you will learn how to read information from the world using Readers, bind that data to Variable Cards, display it on Display Panels, and trigger physical actions using Writers. Mastering this fundamental workflow is the key to unlocking the most powerful, lag-free automation networks in modded Minecraft.Beginner7 steps
Integrated Dynamics · ExplainedHow to Use the Logic Programmer: Operators, Lists & Predicates ExplainedMastering the Logic Programmer in Integrated Dynamics transforms basic redstone setups into intelligent, automated systems capable of processing complex data. In this guide, you will learn how to combine Variable Cards using operators, manipulate data lists, and apply functional programming concepts like predicates, map, and filter to build dynamic sorting and control networks.Intermediate8 steps
Integrated Dynamics · Addon guideIntegrated Tunnels Guide: How to Transfer Items, Fluids & Energy at Max SpeedIntegrated Tunnels expands your Integrated Dynamics networks by letting you move items, fluids, and energy across your base with zero travel delay. By mastering Interfaces, Importers, and Exporters alongside Variable Cards, you can build instant, infinitely scalable transfer systems that easily outperform standard pipes. This guide will walk you through setting up basic transfers, separating network traffic with channels, and configuring max-speed throughput.Beginner7 steps
Integrated Dynamics · Setup guideHow to Build a Storage Network with Integrated Terminals & TunnelsBuild a centralized, searchable storage and crafting system early in your survival world without needing expensive digital drives or massive power grids. By combining Integrated Dynamics with the Integrated Tunnels and Integrated Terminals addons, you can link all your existing chests, barrels, and storage drawers into one seamless interface.Beginner7 steps
Integrated Dynamics · Addon guideIntegrated Crafting Guide: How to Set Up Auto-Crafting & Machine ProcessingMastering auto-crafting with the Integrated Dynamics mod family allows you to automate both standard 3x3 crafting recipes and complex multi-step machine processing on demand. By leveraging the Integrated Crafting, Integrated Tunnels, and Integrated Terminals addons, you can build a surprisingly cheap and scalable request-based automation network early in your progression. This guide walks you through encoding Recipe Variable Cards, configuring Crafting Interfaces on tables and furnaces, and managing jobs through terminals.Intermediate7 steps