Add an option in pattern provider to only accept the product of its current recipe when locked
changhe3 opened this issue ยท 5 comments
Describe the feature
Add a toggle button to the pattern provider interface. When toggled on, the pattern provider's return inventory will only accept the main product of the recipe at which the pattern provider is locked.
Reasons why it should be considered
This can simplify many autocrafting setups. Yes I know level emitter can be set to emit a signal when something is being crafted via crafting card but this information is not specific to a pattern provider but across the network.
Additional details
For example, suppose we are automating some kind of in-world crafting, where we have the following patterns
item A + item x = item B
item B + item y = item C
item C + item z = item D
The most straight forward way of doing this is to push the ingredients into a subnet and drop them with formation plane and pick the result up with annihilation plane in another subnet connecting to the pattern provider with a storage bus. However, there's no way to dynamically set filter on that storage bus. We want to pick up, say, item B when we are crafting it from item A and item x but we don't want to pick it up when we are using it as an ingredient when crafting item C.
@shartte yes, basically similar to how molecular assembler will only accept the crafting ingredients when you insert a pattern in it.
This is being worked on by Jarva for advancedae in the development chat if you want to see about poaching it.
https://github.com/pedroksl/AdvancedAE/pull/93/files