[2.0.73] on_marked_for_deconstruction fires after fluids are cleared from entity

Post your bugs and problems so we can fix them.
User avatar
Shemp
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jan 19, 2026 6:51 pm
Contact:

[2.0.73] on_marked_for_deconstruction fires after fluids are cleared from entity

Post by Shemp »

I want to implement a system where destroying an entity containing "toxic" fluid will cause pollution to be spawned, depending on how much of the fluid was inside.

Marking a storage tank, pipe or pipe-to-ground for deconstruction by robots will flush all fluids from it before robots are dispatched. When the on_marked_for_deconstruction event is fired, the flush has already happened and I have no way to tell what fluid was inside.

EDIT: Firing on_player_flushed_fluid would also provide what I need, I don't think it currently happens when using the Deconstruction planner.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16494
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.73] on_marked_for_deconstruction fires after fluids are cleared from entity

Post by Rseding91 »

Thanks for the report however this is working correctly. Everything is finished modification wise on the entity before the lua event happens. The fluid being voided seems like a bug so I'll forward this to the person in charge of that.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Bug Reports”