r/allthemods•
Lacilobaid

(ATM10) Super Factory Manager + Mekanism Ore Processing (Code Review)

Help

Hey folks, I'm trying to use SFM to program the inputs/outputs of my Mekanism ore processing system so that I can Soul Surge 5/6 sides of each block and really ramp up the production speed.

Each machine in the process has all sides turned off except for an Input/Output on the bottom where the Fancy Inventory Cables will go.

All the Inventory cables are piping into an AE MEGA Interface.

I did all of the coding for the SFM myself, so I'm a bit worried I may have gotten some stuff mixed up. Namely, I'm not sure if I need a separate label for inputting and outputting stuff for the MEGA Interface. I've seen some code from Bucketst's Modular Bees setup that has a Power, Storage, and Resupply tag on each of the ME/MEGA interfaces, and I'm not sure if I need to do something similar, or if I can get away with just a Power and Storage label.

Code: (Apologies ahead of time for terrible formatting)

----------------------------------------------------------

NAME "Mekanism Ore Processing: Copper"

EVERY TICK DO

INPUT fe:: FROM Power

OUTPUT fe:: TO Dissolver

END

EVERY TICK DO

INPUT fe:: FROM Power

OUTPUT fe:: TO Washer

END

EVERY TICK DO

INPUT fe:: FROM Power

OUTPUT fe:: TO Crystalizer

END

EVERY TICK DO

INPUT fe:: FROM Power

OUTPUT fe:: TO Injector

END

EVERY TICK DO

INPUT fe:: FROM Power

OUTPUT fe:: TO Purifier

END

EVERY TICK DO

INPUT fe:: FROM Power

OUTPUT fe:: TO Crusher

END

EVERY TICK DO

INPUT fe:: FROM Power

OUTPUT fe:: TO Enricher

END

EVERY TICK DO

INPUT fe:: FROM Power

OUTPUT fe:: TO Smelter

END

EVERY 20 TICKs DO

INPUT "c:raw_materials/copper" FROM Storage

OUTPUT "c:raw_materials/copper" TO Dissolver

INPUT "mekanism:sulfuric_acid" FROM Storage

OUTPUT "mekanism:sulfuric_acid" TO Dissolver

INPUT "alltheores:dirty_copper" FROM Dissolver

OUTPUT "alltheores:dirty_copper" TO Washer

INPUT "minecraft:water" FROM Storage

OUTPUT "minecraft:water" TO Washer

INPUT "alltheores:clean_copper" FROM Washer

OUTPUT "alltheores:clean_copper" TO Crystalizer

INPUT "c:crystals/copper" FROM Crystalizer

OUTPUT "c:crystals/copper" TO Injector

INPUT "mekanism:hydrogen_chloride" FROM Storage

OUTPUT "mekanism:hydrogen_chloride" TO Injector

INPUT "c:shards/copper" FROM Injector

OUTPUT "c:shards/copper" TO Purifier

INPUT "mekanism:oxygen" FROM Storage

OUTPUT "mekanism:oxygen" TO Purifier

INPUT "c:clumps/copper" FROM Purifier

OUTPUT "c:clumps/copper" TO Crusher

INPUT "c:dirty_dusts/copper" FROM Crusher

OUTPUT "c:dirty_dusts/copper" TO Enricher

INPUT "c:dusts/copper" FROM Enricher

OUTPUT "c:dusts/copper" TO Smelter

INPUT "c:ingots/copper" FROM Smelter

OUTPUT "c:ingots/copper" TO Storage

END

Posted Jan 14, 2026, 12:10 AM UTC

47
Loading comments…