All Mods Resource Packs Data Packs Shaders Modpacks Plugins
RecursiveAE2PatternProvider

RecursiveAE2PatternProvider

by Lumengrid89 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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)

  1. Open the Pattern Encoding Terminal.
  2. Select the Crafting Pattern mode.
  3. Toggle the Recursive Pattern button to ON (green checkmark).
  4. 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:

  1. Click the Download button above and select your Minecraft version (1.21.1, 26.1.2) and platform (Neoforge).
  2. Make sure you have the compatible loader or environment installed for Neoforge.
  3. Move the downloaded RecursiveAE2PatternProvider file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.1.2
Neoforge
3d ago 1
26.1.2
Neoforge
28d ago 1
1.21.1
Neoforge
28d ago 1
1.21.1
Neoforge
1mo ago 1
1.21.1
Neoforge
1mo ago 1
26.1.2
Neoforge
1mo ago 1
26.1.2
Neoforge
2mo ago 1
1.21.1
Neoforge
2mo ago 1
1.21.1
Neoforge
2mo ago 1
1.21.1
Neoforge
2mo ago 1
1.21.1
Neoforge
3mo ago 1
1.21.1
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Neoforge
last yr. 1
Prefer the cheapest tag member and keep generated pattern ranking 
credits to cryolithic
Make maxAlternativesPerItem effective and rank stock-driven recipes last

  • Apply maxAlternativesPerItem in both selection modes (a hard-coded 64
bypassed it when retainRecipeAlternatives=true) and count distinct
recipes instead of ingredient variants. Default raised from 1 to 8.
  • RecipeSelection.alternatives(): also publish recipes rank() rejected
only because their ingredients loop back into the recipe graph (tiered
essences). Order: acyclic recipes, cyclic recipes, stock-driven ones.
  • Treat tier uncrafts (one item in, more of a recipe-reversible item out)
like block unpacks: ranked last, not counted toward the cap, not
expanded. The matching compression recipe is published for each unpack.
  • Reorder CraftingService.getCraftingFor so user-encoded patterns come
first, then generated ones, then generated stock-driven ones; AE2 keeps
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
(glass, wood) no longer multiply patterns.
  • Add debugLogging option (default off) gating the per-item [alternatives]
diagnostics, plus a single INFO line when the cap leaves recipes out
and a build marker at load.
  • Add missing config translations (defaultRecursiveMode,
retainRecipeAlternatives, generatedIngredientAlternatives, debugLogging).
Make maxAlternativesPerItem effective and demote unpack recipes

  • Apply maxAlternativesPerItem in both selection modes (it was bypassed by a
hard-coded 64 when retainRecipeAlternatives=true) and count distinct
recipes instead of ingredient variants. Default raised from 1 to 8.
  • RecipeSelection.alternatives(): also publish recipes rank() rejected only
because their ingredients loop back into the recipe graph (tiered
essences). Order: acyclic recipes, cyclic recipes, stock conversions.
  • Stock conversions (block <-> items) no longer count toward the cap, and
the matching compression recipe is published for each unpack conversion.
  • Reorder CraftingService.getCraftingFor so generated unpack patterns are
tried last; AE2 keeps same-priority patterns in a HashSet, so generation
order had no effect.
  • Add missing config translations (defaultRecursiveMode,
retainRecipeAlternatives, generatedIngredientAlternatives).
  • Add [alternatives] diagnostic logging and a build marker at load.

Recipe Enhancement
Preserve empty slots in shaped recipes
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
Preserve empty slots in shaped recipes.
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.
first porting
integration AE2 WCWT
integration in pattern encoder terminal and tooltip rework
Support Assembler Matrix and Super Assembler Matrix

  • Add ExtendedAE Plus Super Assembler Matrix integration
(SuperAssemblerMatrixClusterMixin, loaded only if extendedae_plus is present)
  • Fix ExtendedAE Assembler Matrix mixin (@Final shadow, remap = false)
  • Skip recipes that consume their own output (e.g. "clear settings"
recipes) when generating dependency patterns
  • 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
in the same provider
  • Add config: maxAlternativesPerItem, skipSelfReferentialRecipes,
recipeBlacklist
performance update by cryolithic
fix guideme warn
AdvancedAE Patter Provider integrated with Recursive Pattern
not the Advaced Processing Pattern
ExtendedAE Assembler integration
  • preserve recursive tag if re-encode
  • integrate guideme
RecursiveAE2PatternProvider Icon
Download RecursiveAE2PatternProvider
Select game version
Select platform