Decide on an approach for which the Factorio subsystem will handle portals (this will require some discussion), and implement the code necessary to maintain the list of existing portals and their configurations, and somehow run code on them each tick.
Decide on an approach for which the Factorio subsystem will handle portals (this will require some discussion), and implement the code necessary to maintain the list of existing portals and their configurations, and somehow run code on them each tick.