LuaEntity function to query CURRENT pumping speed (for pumps and offshore pumps)

kat328
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon May 12, 2025 1:07 pm
Contact:

LuaEntity function to query CURRENT pumping speed (for pumps and offshore pumps)

Post by kat328 »

TL;DR
A function for LuaEntity to query the current pumping speed for pumps and offshore pumps.
What?
Currently, there is a function that queries the maximum pumping speed of a LuaEntityPrototype, but there is no function to query the CURRENT pumping speed of an offshore pump or a pump.

Image
Why?
It would be available for modders.

Thank you!
Last edited by kat328 on Tue May 13, 2025 8:15 am, edited 1 time in total.
thousand_x
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Jul 25, 2025 2:33 pm
Contact:

Re: LuaEntity function to query CURRENT pumping speed (for pumps and offshore pumps)

Post by thousand_x »

+1
This is currently blocking me with mod progress and it seems pointless to engineer alternative / approximate solutions when this variable seems to just exist in the game but is not accessible for the mod. Please, add it, if it is as simple as it looks.
Last edited by thousand_x on Fri Jul 25, 2025 2:40 pm, edited 1 time in total.
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 247
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

Re: LuaEntity function to query CURRENT pumping speed (for pumps and offshore pumps)

Post by Quezler »

This got added in 2.0.61: https://lua-api.factorio.com/latest/cla ... _last_tick

(the value shown in the sidebar is pumped_last_tick times 60, so despite what the naming might suggest its the value you are after)
Post Reply

Return to “Implemented mod requests”