Page 1 of 1

on_entity_settings_pasted for all entities ?

Posted: Tue Aug 23, 2016 5:33 pm
by binbinhfr
Hi,

it would be nice if on_entity_settings_pasted and the factorio copy/paste feature could trigger on any entities (and modded entity of course).
Because this event is very useful if you want to copy modded variables attached to a derivated modded entity.
I already use it on my trader chest, and players asked me why they cannot copy/paste also on trader tanks, trader accus, etc...

On vanilla objects that has nothing to copy/paste, the copy/paste feature would just do nothing. But the feature would be available on every entity.

Re: on_entity_settings_pasted for all entities ?

Posted: Tue Aug 23, 2016 8:39 pm
by Rseding91
You can already do this. You just have to define which entities can copy to which other entities using the entity prototype property: additional_pastable_entities = {"entity-1", "entity-2", ...}

Re: on_entity_settings_pasted for all entities ?

Posted: Tue Aug 23, 2016 9:51 pm
by binbinhfr
Grrrreat ! thx guy.

Re: on_entity_settings_pasted for all entities ?

Posted: Wed Aug 24, 2016 2:31 am
by Mooncat
I was looking for something like that too. Thanks!

Re: on_entity_settings_pasted for all entities ?

Posted: Mon Jan 20, 2020 7:59 pm
by ownlyme
works, thx :)
this hint should be right in the events documentation :D