Recursive AE2 Pattern Provider
🔄 Overview
Recursive AE2 Pattern Provider revolutionizes Applied Energistics 2 automation by automatically generating dependency patterns for complex recipes directly within your network. Say goodbye to tedious manual pattern creation and hello to effortless multi-tier crafting automation!
✨ Features
🎯 Automatic Pattern Generation
- Smart Dependencies: Automatically creates patterns for missing crafting ingredients.
- Recursive Logic: Generates patterns for ingredients of ingredients, as deep as you configure.
- Recipe Discovery: Only creates patterns for items that have valid crafting recipes.
⚠️ Note: If you set a non-crafting pattern as Recursive, you must place it in a Pattern Provider directly attached to a Molecular Assembler.
🖥️ Terminal GUI Integration & Per-Pattern Control
- Direct Terminal Toggle: Easily toggle recursion ON/OFF directly inside the Pattern Encoding Terminal (Crafting Pattern tab) next to the fluid substitution buttons.
- Crafting Table Alternative: Convert patterns using a crafting table recipe (
[AE2 Pattern] + [Recipe Item] → [Recursive Pattern]). - Automatic Persistence: Re-encoding an existing recursive pattern in the terminal automatically preserves its recursive status.
- Universal Support: Works with ALL AE2 pattern types:
- Crafting Patterns
- Processing Patterns
- Smithing Table Patterns
- Stonecutting Patterns
- Remove Recursion: Craft a recursive pattern alone (without the recipe item) in a crafting table to convert it back to a normal pattern.
🎨 Visual Feedback
- Clean Native Tooltips: Displays a subtle, green Recursive tag directly above the "Encoded by" line for Crafting Patterns.
⚙️ Configuration Options
- Terminal GUI Toggle: Enable or disable the recursive button in the Pattern Encoding Terminal (
enableEncodingGuiToggle). - Recursion Depth: Control how deep pattern generation goes (
-1= unlimited,0= disabled,1+= max depth limit). - Recipe Item: Customize which item is required to craft recursive patterns (default:
minecraft:iron_ingot). - Substitute Inheritance: Auto-generated patterns inherit substitute settings from parent patterns.
- Default Settings: Configure default substitute behavior for patterns without parent context.
🎮 How to Use
Method A: Pattern Encoding Terminal (Recommended)
- Open the Pattern Encoding Terminal.
- Select the Crafting Pattern mode.
- Toggle the Recursive Pattern button to ON (green checkmark).
- Insert your recipe and click Encode Pattern.
Method B: Crafting Table Recipe
[AE2 Pattern] + [Recipe Item] → [Recursive Pattern]
Craft the pattern with the configured recipe item (default: Iron Ingot) in any crafting table.
Remove Recursion
[Recursive Pattern] → [Normal Pattern]
Craft the recursive pattern alone (without the recipe item) to make it normal again.
💡 Customizing the Recipe Item
To change which item is required for crafting recursive patterns, edit config/recursiveae2patternprovider-common.toml:
[recursiveae2patternprovider-common.toml]
recipeItem = "minecraft:diamond" # Use diamond instead of iron
# Or use any other item:
# recipeItem = "minecraft:gold_ingot"
# recipeItem = "ae2:calculation_processor" How to Install RecursiveAE2PatternProvider (Mod)
RecursiveAE2PatternProvider by Lumengrid89 is verified for Neoforge across Minecraft versions 1.21.1, 26.1.2 (latest release: 1.1.3, file size: 108 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.1, 26.1.2) and platform (Neoforge).
- Make sure you have the compatible loader or environment installed for Neoforge.
- Move the downloaded RecursiveAE2PatternProvider file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Versioncredits to cryolithic
- Apply maxAlternativesPerItem in both selection modes (a hard-coded 64
recipes instead of ingredient variants. Default raised from 1 to 8.
- RecipeSelection.alternatives(): also publish recipes rank() rejected
essences). Order: acyclic recipes, cyclic recipes, stock-driven ones.
- Treat tier uncrafts (one item in, more of a recipe-reversible item out)
expanded. The matching compression recipe is published for each unpack.
- Reorder CraftingService.getCraftingFor so user-encoded patterns come
same-priority patterns in a HashSet, so generation order had no effect.
- Skip generating patterns for items the grid already reports craftable.
- Static selection publishes one ingredient variant per recipe, so tags
- Add debugLogging option (default off) gating the per-item [alternatives]
and a build marker at load.
- Add missing config translations (defaultRecursiveMode,
- Apply maxAlternativesPerItem in both selection modes (it was bypassed by a
recipes instead of ingredient variants. Default raised from 1 to 8.
- RecipeSelection.alternatives(): also publish recipes rank() rejected only
essences). Order: acyclic recipes, cyclic recipes, stock conversions.
- Stock conversions (block <-> items) no longer count toward the cap, and
- Reorder CraftingService.getCraftingFor so generated unpack patterns are
order had no effect.
- Add missing config translations (defaultRecursiveMode,
- Add [alternatives] diagnostic logging and a build marker at load.
Add bounded dependency scoring for recipe selection
Let AE2 choose available recipe alternatives without expanding compression loops
Generate validated ingredient variants and keep execution bound to the chosen inputs
Explain missing recipe sources with short orange tooltips
Refresh stale recursive pattern keys before idle-grid calculations
Add a server-synchronized default recursive encoding setting without colliding with TransparentAE2 terminal fields
TY @Cupears
Add bounded dependency scoring for recipe selection.
Let AE2 choose available recipe alternatives without expanding compression loops.
Generate validated ingredient variants and keep execution bound to the chosen inputs.
Explain missing recipe sources with short orange tooltips.
Refresh stale recursive pattern keys before idle-grid calculations.
Add a server-synchronized default recursive encoding setting without colliding with TransparentAE2 terminal fields.
- Add ExtendedAE Plus Super Assembler Matrix integration
- Fix ExtendedAE Assembler Matrix mixin (@Final shadow, remap = false)
- Skip recipes that consume their own output (e.g. "clear settings"
- Skip recipes that create cycles (A -> B -> A)
- Generate one deterministic recipe per item instead of every alternative
- Do not generate alternatives for items that already have a pattern
- Add config: maxAlternativesPerItem, skipSelfReferentialRecipes,
not the Advaced Processing Pattern
- preserve recursive tag if re-encode
- integrate guideme