-
Notifications
You must be signed in to change notification settings - Fork 1
Recursive AutoCrafting
This program is based on the one presented in McJty's video with a slight modification.

To get this program, copy the code and use ctrl-v to paste it inside a Programmer.
Changes from McJty's program are as follows:
- I use a chest for storing the crafting cards rather than the workstation. This allows for more recipes. The chest could be replaced with something larger like an Actually Additions crate or RF Tools storage module.
- I use the workstation to buffer the intermediate crafting results
- I found with more deeply recursive crafts that the buffer would get items in more than the first slot so I modified the small program (bottom right) to loop over all the slots in the buffer inventory.
This program uses a setup as follows:

Notes:
As written, the program expects the node to be called a. The chest is on the west side of the node and the workstation is on the east. You will need to adjust those parameters if you orient things differently.
The program expects to get ingredients from a Storage Scanner module. Make the module, right click on a storage scanner that has access to all your stuff, then put it in the processor.
The Processor will need a network card. Don't forget to run net setup <name>.
The Processor needs quite a few CPUs depending on how recursive your recipes are. You need 2 to run it, and 1 extra for each level of recursion.
You have to allocate at least 11 inventory spots in the Processor to this program, I usually allocate 4 rows (12 spots).