AE2 Crafting CPU Calculator

From the AE2 19.2.17 and MEGA Cells 4.11.0 source

Say how much storage and how many co-processors you need and get the smallest CPU that has them. Or pick the blocks yourself and see the storage, crafting speed, power and materials. Add your Molecular Assemblers to see which one sets the speed, the CPU or the assemblers. Every number comes from AE2's CraftingCPUCluster, its multiblock check and the Molecular Assembler, and MEGA Cells' crafting blocks.

—

Drag to rotate. Right-drag, Shift-drag or two-finger drag to pan. Scroll or pinch to zoom.

Result

    Materials to craft it

    From the default recipes, which every ATM10 pack keeps. Every block starts as a Crafting Unit; MEGA blocks start as a MEGA Crafting Unit, which takes four.

    Mods

    MEGA Cells adds 1M to 256M crafting storage and a 4-thread accelerator. They mix with AE2's blocks in one CPU. Every ATM10 pack ships MEGA Cells 4.11.0 with AE2 19.2.17.

    Plan from what you need

    The crafting confirmation screen shows the bytes a job needs. Pick the biggest storage block you can craft right now.

    Assemblers are the ones next to your pattern providers. Each works on one craft at a time, so together they cap a crafting job's speed whatever the CPU has. Changing them sets co-processors to the most that still help, about 2 per five-card assembler (4 assemblers: 7). 0 leaves them out; for processing patterns, the machines' own speed is the cap instead.

    Blocks

    Fill spare space with

    The CPU must be a solid box, so any space your blocks don't fill gets this block. Crafting Units are cheapest; Co-Processing Units make the leftover space add speed.

    Shape

    Share this design

    The link opens this exact CPU. Paste a design code above to load it.

    Build it in Minecraft

    Put the file in .minecraft/schematics to load it with Create's Schematic Table or Litematica, or in saves/<world>/generated/minecraft/structures to load it with a structure block.

    What the code actually says

    17 blocks a side, not 16

    The size check compares the far corner to the near one, so a CPU can span 17 blocks each way. It must be a solid box of crafting blocks with at least one storage block in it. In-game, a 17×17×17 forms and an 18-wide box doesn't.

    max − min ≤ 16   on every axis
    every block: a crafting block
    at least one: storage bytes > 0
    CraftingCPUCalculator.checkMultiblockScale · verifyInternalStructure

    Touching CPUs merge or fail

    AE2 grows the box outward from each block, then checks the layer just outside all six sides. Two CPUs that line up face to face read as one bigger box and merge into a single CPU. Anything else touching a side stops both forming. Only corners and edges touching diagonally leave two CPUs. We checked all three cases in-game.

    for each side of the box:
      any crafting block in the next layer out?
        → don't form
    MBCalculator.verifyUnownedRegion

    Co-processors: patterns per 4 ticks

    Each tick the CPU may send out as many patterns as it has co-processors plus one, minus what it sent in the last three ticks. That caps it at five times that number per second, if enough assemblers or machines are free to take them (see the next card). In-game, 0, 3, 7 and 15 co-processors sent 5.1, 20.2, 40.7 and 79.0 patterns a second.

    ops    = coProcessors + 1 − (sent in last 3 ticks)
    max/s  = 5 × (coProcessors + 1)
    CraftingCpuLogic.tickCraftingLogic

    Assemblers set the pace

    A Molecular Assembler takes one craft at a time and finishes it when its progress reaches 100. It adds 10 a tick, or 50 with five speed cards, so five cards finish a craft every 2 ticks: 10 crafts a second. A job goes at whichever is slower, the CPU's patterns or the assemblers' crafts. In-game, a CPU with 492 co-processors crafted 10.1, 20.0, 40.3, 60.0 and 80.7 a second with 1, 2, 4, 6 and 8 assemblers, and a CPU with 15 co-processors matched it at 8.

    progress/tick = 10 13 17 20 25 50   (0–5 speed cards)
    crafts/s      = 20 / ceil(100 / progress)
    speed         = min(5 × (co-proc + 1), assemblers × crafts/s)
    MolecularAssemblerBlockEntity.tickingRequest

    What a job's bytes are

    Crafting storage counts every item a job asks for at each step of the recipe tree, one byte each (fluids: one per bucket), plus one per craft and eight per tree node. The confirmation screen shows the total.

    bytes = Σ items requested (1 each)
          + Σ crafts (1 each)
          + 8 × recipe tree nodes
    ICraftingSimulationState.addStackBytes · CraftingCalculation

    One channel, 1 AE/t a block

    The whole CPU is one multiblock node for channels, however big it is. Every block still draws the default idle power, and each pattern sent costs 1 AE per input item.

    channels   = 1
    idle power = blocks × 1 AE/t   (2 FE/t)
    per push   = 1 AE per item, per 125 mB fluid
    GridFlags.MULTIBLOCK · ManagedGridNode · CraftingCpuHelper.calculatePatternPower

    MEGA blocks mix in

    MEGA Cells' crafting blocks use AE2's own block entity, so one CPU can hold both. Its accelerator counts as four co-processors in one block; AE2's counts as one.

    ae2 co-processor      = 1 thread
    MEGA accelerator      = 4 threads
    MEGA 256M storage     = 1024 × AE2 256k
    MEGACraftingUnitType · CraftingCPUCluster.addBlockEntity