Mineuniverse
Log in Register
Mods

AE Recipe Tool

Modify pattern terminal recipe transfer by kubejs.
by trichloroisocyanuric
Download Claim this project
241 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Addons Applied Energistics 2 Automation KubeJS Utility & QoL

AE Recipe Tool

In pattern terminal processing mode by pressing + of emi/rei, it will send ClientEvents.AeRecipeTransfer events, allowed to modify transfer rescipe. Such as furnace rescipe of input and output multiply by 8, and add the coal in the input slot, add runes to the output slot of runic_altar.

example kubejs/client_scripts/example.js:

ClientEvents.aeRecipeTransfer((event) => {
    const recipeName = event.getRecipeTypeName();
    console.log(`recipe name: ${recipeName}`);

    switch (recipeName) {
        case "minecraft:smelting":
            event.initSortedSlots();
            console.log("modify smelting...");
            let inputs = event.inputs;
            for (let index = 0; index < inputs.length; index++) {
                let item = inputs[index];
                if (event.isItem(item)) inputs[index] = event.itemToGenericStack(item.what().toStack(item.amount() * 8));

            }
            let outputs = event.outputs;
            for (let index = 0; index < outputs.length; index++) {
                let item = outputs[index];
                if (event.isItem(item)) outputs[index] = event.itemToGenericStack(item.what().toStack(item.amount() * 8));
            }
            inputs.add(event.itemToGenericStack(Item.of("minecraft:coal")));
            break;
        case "botania:petal_apothecary":
            event.initSortedSlots();
            console.log("remove water...");
            event.inputs.removeIf((i) => !event.isItem(i));
            break;
        case "botania:runic_altar":
            event.initSortedSlots();
            console.log("add runic...");
            let catalysts = event.holder.value().catalysts;
            if (!catalysts.isEmpty()) {
                let lastItem = event.inputs.removeLast();
                for (let index = 0; index < catalysts.length; index++) {
                    let item = event.ingredientToGenericStack(catalysts[index]);
                    event.inputs.add(item);
                    event.outputs.add(item);
                }
                event.inputs.add(lastItem);
            }
            break;
        case "create:mechanical_crafting":
            console.log("do not to merge items");
            event.initSortedSlots(false);
            break;
        default:
            break;
    }
});
ae_recipe_tool-1.0.0.jar
MC 1.21, Client, NeoForge, 1.21.1
Release 2025-07-18 Get

More from trichloroisocyanuric

AE2 ID Sorter
666
Create: Spin Spawner
3,052
Create: Spout Acceleration
2,753
AE Inventory Profiles
1,834

You Might Also Like

AE2 Extras
Adds some extra stuff to AE2
9,507,442
Immersive Energistics
Adds ME-capable wires to Immersive Engineering.
7,943,047
Growable Storage Cells
A Magical Crops Mod - For AE2/RS Storage Cells
825,529
AE2 Things
Introduces a new Cell type, advanced inscriber and crystal growth chamber
768,346
[Forge] AE2 Additional Opportunity
Позволяет использовать AE2 по новому! / Allows you to use AE2 in a new way!
743,777
Applied Construction Sticks
Allows Construction Sticks to use items inside a AE2 network
736,944