AE Recipe Tool
This mod allows you to customize recipe transfer in the Applied Energistics 2 pattern terminal. When processing recipes in pattern terminal mode, pressing the + button in EMI or REI interfaces triggers the ClientEvents.AeRecipeTransfer event, which enables modification of transferred recipes.
Main Features
With this tool you can:
- Increase the quantity of input and output materials in recipes (for example, multiply by 8 for smelting recipes)
- Add additional components to input slots (such as coal for furnaces)
- Add runes to output slots of Botania's runic altar
- Remove unnecessary components from recipes
- Configure item merging behavior in Create's mechanical crafting
Usage Example
ClientEvents.aeRecipeTransfer((event) => {
const recipeName = event.getRecipeTypeName();
console.log(Recipe name: ${recipeName});
switch (recipeName) {
case "minecraft:smelting":
event.initSortedSlots();
console.log("Modifying 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("Removing water...");
event.inputs.removeIf((i) => !event.isItem(i));
break;
case "botania:runic_altar":
event.initSortedSlots();
console.log("Adding runes...");
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("Disabling item merging");
event.initSortedSlots(false);
break;
default:
break;
}
});
The tool is perfect for configuring crafting automation in complex modpacks where precise control over recipe transfer between different crafting systems is required.