Skip to content

Pattern P2P Tunnel

Stone edited this page Jun 26, 2024 · 1 revision

The Pattern P2P Tunnel is the modern equivalent of the Interface P2P Tunnel from NAE2.

The high level explanation is that a pattern provider on the input can send patterns to each of the output, while the outputs will allow recipe outputs to go through the tunnel back to the pattern provider, so Molecular Assemblers and other auto-outputing machines work fine. A simple example is 1 provider on an input with 4 outputs on alloy furnaces will allow the provider to use all 4 furnaces at once for recipes. Blocking mode is not required, but is recommended to force auto-crafting to use every machine on the tunnel.

The more technical explanation is that a pattern provider will see every output of the Pattern P2P as a valid inventory to output to. This allows blocking mode to work correctly since blocking mode only cares about the inventory its outputting too. Additionally this guarantees that patterns won't be split up among outputs or anything like that because the provider is atomic when it comes to outputting a pattern to a machine.The output -> input tunnel for recipe's outputs is managed by forward requests for the output p2p's capability to it's pattern provider. This allows anything the pattern provider can accept to be tunneled by the p2p, and the more astute might notice that this can be used forward the capability of any block on the input, though I'll leave the rest as an exercise to the reader.

Clone this wiki locally