allowed_substances and prohibited_substances fields for Pipe and StorageTank prototypes

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
prdfndr
Inserter
Inserter
Posts: 45
Joined: Sat Mar 21, 2020 6:23 pm
Contact:

allowed_substances and prohibited_substances fields for Pipe and StorageTank prototypes

Post by prdfndr »

TLDR
Add allowed_substances (All by default) and prohibited_substances (empty list by default) fields for pipe and tank (and pump) prototypes.

What?
allowed_substances field would contain all substances that are allowed into the pipe or the tank. It it is equal to "ALL", then everything is allowed.
prohibited_substances would contain a list of all substances that are not allowed into the pipe or tank. Would take priority over the allowed substances.
If a player tries to connect a tank or a pipe to the prohibited substance connection, the game blocks it.

Why?
Would help modders to make more diverse mods. So, molten iron could be made impossible to be stored in plastic pipes, or particle stream in regular tanks. Antimatter could be made to require special tank, or prohibited to be transported by pipes at all. Would allow modders to enforce specific fluid designs, like pipeless design, or only pipes of a certain shape (for particle streams)
Post Reply

Return to “Modding interface requests”