[Question] A way to get Offshore Pump Active Status

Place to get help with not working mods / modding interface.
Post Reply
TreefrogGreaken
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Thu May 04, 2017 12:07 pm
Contact:

[Question] A way to get Offshore Pump Active Status

Post by TreefrogGreaken »

Hello Modders!

I'm currently developing a mod, and have hit a point where I'm not to sure which direction to go, if there is one.

My mod needs to know if the offshore pump is pumping water or not, so that I can calculate the amount of water pumped.

I took a look with the debug interface and saw that the offshore pump doesn't report back an active status, was going to try with entity.active. So is there any way that I can get the status of this?

I thought of a couple of options but would like some opinions.

1 - Ask the lovely devs to include the entity.active on the offshore pump, so that pumping = active, not pumping = not active, as part of the fluid changes for 0.17, or earlier
2 - Create a new entity that looks like an offshore pump, but behaves like a pump so i can get an active status from it
3 - Create some function to include within the existing entity to calculate the amount of water moved and provide a status

Thanks!

Post Reply

Return to “Modding help”