Fantasy Pattern
Fantasy Pattern adds a compact, ME-native crafting pipeline to Applied Energistics 2: encode processing recipes in a Fantasy Encoding Terminal, control access through devices owned by the network, and execute the resulting patterns instantly in a Fantasy Molecular Reconfiguration Pattern Provider.
Unofficial addon for Applied Energistics 2. Not affiliated with or endorsed by the Applied Energistics 2 team.
What's New in 1.0.12
- Added the Fantasy Device Access Block and datapack-driven device requirements for recipe encoding.
- Added local-world configuration screens for planner, device-access, JEI-category and fuel settings.
The complete release notes and configuration migration example are available in the project's
CHANGELOG.md.
Features
Fantasy Recombination Pattern
- Stores a processing recipe in one item with up to 81 ingredient entries and 6 results.
- Supports items, fluids and, when Mekanism is installed, chemicals.
- Preserves tag-based ingredients where the server recipe exposes them.
- Merges equivalent entries and supports amounts beyond normal item stack limits.
- Survives world reloads and persistent AE2 crafting jobs.
- Runs only in the Fantasy Molecular Reconfiguration Pattern Provider, not AE2's standard pattern providers.
Fantasy Encoding Terminal
- Attaches to an ME network like other AE2 terminal parts and includes the full network item list.
- Transfers crafting, smelting, stonecutting and modded machine recipes directly from JEI.
- Uses JEI's displayed amounts while restoring server-side recipe tags where possible.
- Provides preview-only input slots, free result ghost slots and whole-recipe amount doubling with overflow protection.
- Rejects browse-only JEI pages such as tag information and AE2 P2P attunement by default.
Fantasy Device Access Block
- Stores items representing machines available to the connected ME network.
- Gates recipe encoding through datapack rules or, when no rule exists, four of the JEI category's catalyst items.
- Can be disabled as a requirement through the server configuration while remaining usable as storage.
Fantasy Molecular Reconfiguration Pattern Provider
- Holds Fantasy Recombination Patterns and registers them with AE2's crafting service.
- Executes accepted crafts instantly without processing time or Acceleration Cards.
- Consumes one configurable fuel charge per craft when fuel consumption is enabled.
- Defaults to one AE2 Matter Ball providing 100,000 crafts.
- Persists remaining charges and pending outputs across saves and chunk reloads.
- Uses the same accounting for normal AE2 dispatch and optional OmniSequence batch dispatch.
Aggregated Crafting Planner
- Deduplicates large deterministic recipe trees into a graph for efficient planning.
- Handles recipes that borrow tools or containers without consuming them.
- Falls back to AE2 for individual branches or the complete plan whenever equivalent behavior cannot be proven.
- Provides configurable node and compilation-time limits, plus optional diagnostics.
Requirements
| Dependency | Required | Notes |
|---|---|---|
| Minecraft 1.21.1 | Yes | |
| NeoForge 21.1.x | Yes | |
| Applied Energistics 2 | Yes | 19.2.x |
| JEI | Yes | Recipe transfer into the encoding terminal |
| Mekanism | Optional | Chemical inputs and outputs in patterns |
| Applied Mekanistics | Optional | Bridges Mekanism chemicals into AE2 |
| OmniSequence: Transfinite | Optional | Concurrent batch dispatch integration |
Without Mekanism and Applied Mekanistics, the mod runs normally without chemical ingredient support.
Usage
- Craft a Blank Fantasy Pattern from an AE2 Blank Pattern and an Amethyst Shard.
- Place it in the Fantasy Encoding Terminal.
- Open a recipe in JEI and press the transfer button (
+). - Place the required machine items in a connected Fantasy Device Access Block when device checks are enabled.
- Press Encode to create a Fantasy Recombination Pattern.
- Place encoded patterns and configured fuel in a connected Fantasy Molecular Reconfiguration Pattern Provider.
- Request the output from an ME terminal. The provider executes the recipe instantly.
Hovering an encoded pattern shows its complete ingredient and result list.
Configuration
Settings are stored in the server configuration. Local singleplayer worlds can edit them through Fantasy Pattern's button in NeoForge's mod list; remote-server values are shown read-only.
Fuel items and their values share one list entry:
annihilation_fuel_items = ["ae2:matter_ball:100000", "minecraft:diamond:500000"]
The final colon separates the item id from its positive craft count. The former crafts_per_matter_ball option has been removed.
Other notable settings include:
consume_fuel: enables or disables per-craft fuel consumption.device_access_mode: requires network-owned devices or permits unrestricted encoding.blocked_jei_category_ids: excludes browse-only or server-selected JEI categories.max_fast_mode,max_fast_max_nodesandmax_fast_compile_budget_ms: control the aggregated planner.batch_dispatch_enabled: enables optional OmniSequence batch dispatch.diagnostics: logs planner aggregation and fallback decisions.
Compatibility
- Modern Industrialization and other machine mods: recipe transfer uses the amounts JEI displays, including multi-count machine inputs.
- AllTheLeaks: recipe implementations with unsafe
getIngredients()behavior fall back to JEI's displayed stacks instead of aborting the transfer. - OmniSequence: Transfinite 1.3.9+: OmniSequence owns concurrent CPU scheduling while Fantasy Pattern applies its instant execution and fuel accounting once per craft.
- Custom datapacks: device rules can be replaced or extended through
data/<namespace>/device_access/*.jsonwith standard NeoForge conditions for optional mods.
Third-Party Code and License
Parts of version 1.0.8 and later are adapted from OmniSequence: Transfinite under the MIT License.
Copyright (c) 2026 HibikiShino and OmniSequence: Transfinite contributors.
The full attribution is available in THIRD_PARTY_NOTICES.md. Fantasy Pattern is distributed under the MIT License.
Support disclaimer: this project is maintained in limited spare time. Issues may take time to address, and not every problem is guaranteed to be fixed.


