Page 1 of 1

Teleportation event handler, entity prototype flag

Posted: Wed Dec 11, 2019 9:37 pm
by IronCartographer
Picker Dollies implements a custom event which provides other mods with {player_index, moved_entity, start_pos} when it teleports something. It also provides a blacklist for entities never to be teleported.

It would be useful for generic mod compatibility if there were an official event for teleportation. Additionally, entity prototypes could optionally include a teleportation_allowed flag (which belts would be denied from setting to true, despite it being the default for most things).

Inspiration: https://mods.factorio.com/mod/ForceFiel ... 000be1c9f3