CompProperties_RefillWithPipes - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

You can add this comp to any other building that has CompRefuelable or that is an ItemProcessor. It allows it to connect to nets, and fill up using the net resources.

<li Class="PipeSystem.CompProperties_RefillWithPipes">
  <pipeNet>VCHE_ChemfuelNet</pipeNet>
  <thing>Chemfuel</thing>
</li>

Note:

In the PipeNetDef, there is this option:

<linkToRefuelables>
  <!-- You can add as many as you want -->
  <li>
    <!-- Connect to all chemfuel building -->
    <thing>Chemfuel</thing>
    <!-- 1 in pipenet: 1 when refueling -->
    <ratio>1</ratio>
  </li>
</linkToRefuelables>

It adds CompProperties_RefillWithPipes to all buildings that have CompRefuelable (or its subtypes) and that can be refueled using thing. This option do not add the comp to ItemProcessors.

To disable automatic linking of refuelables, you can give such a refuelable the AutoRefuelableLinkingExtension def mod extension:

<ThingDef>
  <!-- All your def data here -->
  <modExtensions>
    <li Class="PipeSystem.AutoRefuelableLinkingExtension">
      <!-- A list of pipe nets which this refuelable won't automatically link with -->
      <disabledAutoLinkingNetDefs>
        <li>VCHE_ChemfuelNet</li>
        <liVNPE_NutrientPasteNet></li>
      </disabledAutoLinkingNetDefs>
    </li>
    <!-- Other mod extensions -->
  </modExtensions>
</ThingDef>
⚠️ **GitHub.com Fallback** ⚠️