A Recursive Crafting Setup
As stated in autocrafting, the autocrafting planning algorithm cannot handle recipes where
the primary output is one of the inputs. For example, it cannot handle cloning
Кузнечный шаблонs.
One solution is use of a
МЭ излучатель уровня's ability to pretend to be a pattern.
This will then be used to turn on a little setup that constantly performs the craft. In this case, we will look at a setup
to clone
Кузнечный шаблонs.
Configurations
-
The
МЭ-интерфейс (1) is set to stock the required additional ingredients: diamond and netherrack. -
The
МЭ излучатель уровня (2) is configured with "netherite smithing template", and set to "Emit Redstone to craft item". -
The first
Мэ шина импорта (3) is filtered to the items the Interface is stocking. It has a Redstone Card. The redstone mode is set to "Active with signal". -
The first
МЭ шина хранения (4) is set to a higher priority than the second storage bus. -
The
Молекулярный сборщик (5) has the pattern for duplicating the smithing template, and one smithing template already inserted manually.
-
The second
Мэ шина импорта (6) is in its default configuration. -
The second
МЭ шина хранения (7) is filtered to "netherite smithing template". It has a lower priority than the first storage bus.
How It Works
- The
МЭ излучатель уровня pretends to be a pattern due to the inserted
Карта изготовления and being set to "Emit Redstone to craft item". Thus, "netherite smithing template" shows up in
terminals as a valid thing to autocraft. - When receiving a request to craft that item, either from a player or from the system itself, the level emitter turns on.
- The first
Мэ шина импорта is activated by the level emitter, and pulls out the ingredients stocked in the
МЭ-интерфейс. - The only
МЭ шина хранения on the network that is able to store those ingredients is the one on the assembler. - The
Молекулярный сборщик receives the ingredients (already having 1 smithing pattern inside), and performs the craft, producing 2 smithing patterns. - The second
Мэ шина импорта extracts 1 smithing pattern. - The first storage bus has a higher priority, so that smithing pattern goes back into the assembler.
- The second
Мэ шина импорта extracts 1 smithing pattern. - The assembler cannot receive another smithing pattern, so the second smithing pattern goes to the lower priority storage bus, inserting it into the interface.
- The
МЭ-интерфейс, not being set to stock smithing patterns, inserts it into the network.
