Pump filter (splitter_filter but for pump)

Things that already exist in the current mod API
vinaghost
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Sep 08, 2025 4:10 am
Contact:

Pump filter (splitter_filter but for pump)

Post by vinaghost »

Can we have pump_filter with the same behavior as splitter_filter ?https://lua-api.factorio.com/latest/cla ... ter_filter

I expected something like this
pump_filter :: Read|Write ItemFilter ?

The filter for this pump, if any is set.
Can only be used if this is Pump
Currently (in 2.0.72), I only see defines.input_action.set_pump_fluid_filter https://lua-api.factorio.com/latest/def ... uid_filter

Also I don't see FluidFilter or similar, it may become a problem when defining this property
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 499
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Pump filter (splitter_filter but for pump)

Post by protocol_1903 »

itemfilters arent just an item name because they have to support quality. fluids don't so its just a fluid string

The better request would be access to the pump filter via script
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903

Buy me a coffee
Bilka
Factorio Staff
Factorio Staff
Posts: 3760
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Pump filter (splitter_filter but for pump)

Post by Bilka »

Use the set_filter and get_filter method on the fluidbox.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Already exists”