No Pipe Touching 2.0


This mod alters existing pipes. You will need another mod to add new pipes. Allows you to place pipes of different materials next to each other without them connecting. Designed as a less fancy alternative to advanced fluid handling, without the recipe complexity of flow control.

Utilities
15 days ago
1.1 - 2.0
2.77K
Logistics Fluids
Owner:
protocol_1903
Source:
https://github.com/protocol-1903/no-p...
Homepage:
https://discord.gg/K3fXMGVc4z
License:
MIT
Created:
10 months ago
Latest Version:
1.1.12 (15 days ago)
Factorio version:
1.1 - 2.0
Downloaded by:
2.77K users

This mod alters existing pipes. You will need another mod to add new pipes.

What?

NPT allows pipes to only connect to pipes of the same material, including underground pipes! Pipe weaving is now possible!
Please report any bugs here or on github

Compatability

Should be compatible with most mods that adds unique pipes, if something breaks, let me know.

By default, NPT completely replaces the connection categories defined by other mods. If you wish to add compatibility on your own, you have a few options:

  • Add the prototype.npt_compat = {} table to your prototype (pipe, pipe to ground, tank, crafting machine, etc)
  • Add npt_compat.mod = "your-mod-name" REQUIRED FOR SMOOTH COMPATABILITY
  • Add npt_compat.ignore = true if you don't want NPT to do anything to that entity
  • Add npt_compat.tag = "custom-tag" for NPT to make all entities with the same tag connect. For example, mod = "test-mod" and tag = "foo" means that any entities with the test-mod and foo tags will connect. This means that two different mods with the same tag will not connect, so if you want them to connect, mod and tag must be the same. This is often easier and better than using override
  • Add npt_compat.override = "custom-category" to override what the connection_category is for all of the normal connections of that entity
  • Add npt_compat.override_underground = "custom-category" to override what the connection_category is for all of the underground connections of that entity

Known compatibility:

If you wish to add compatibility with a mod, talk to me on here or discord so we can sort it out.

History

This is a complete rebuild of the 1.1 version using connection_category, a new feature in the 2.0 modding API. Old versions used scripting and a ton of filler entities. The old code won't be useful... at least here :)

The old version is a revamp of Incompatible Pipes by sticklord. It was rebuilt from the ground up for 1.1.