Event when entity is pasted using Ctrl+C Ctrl+V

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Sharparam
Inserter
Inserter
Posts: 27
Joined: Sat Mar 25, 2023 11:21 pm
Contact:

Event when entity is pasted using Ctrl+C Ctrl+V

Post by Sharparam »

Currently, if you have something like a custom constant combinator prototype, and a user copies an existing one with Ctrl+C and then pastes over another entity of the same type with Ctrl+V (blue highlight meaning it will replace/merge on the target entity), there doesn't seem to be any kind of event generated for a mod to respond to that action.

My current usecase is that I need to know when this happens so I can adjust to the signals that were just overwritten into my custom constant combinator (current released version does not have full support for logistic sections so it needs to do some sorting on the signals if something changes the layout of the sections).

I imagine other entities may have need to respond to such an event as well (like how there is on_entity_settings_pasted).
curiosity
Filter Inserter
Filter Inserter
Posts: 587
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Event when entity is pasted using Ctrl+C Ctrl+V

Post by curiosity »

Post Reply

Return to “Modding interface requests”