About Protocol's Extended Runtime Event Library
From Factorio Mod PortalA Mods for Factorio, version 2.1.
Just another library mod with some custom runtime events
WARNING: CERTAIN DESTRUCTIVE EVENTS MAY NOT RETURN ENTITIES: invalid entities cannot be contained in raised script events so they are culled before the event is raised
WARNING: PEREL CURRENTLY EDITS WIRES IN UNFORTUNATE WAYS: the UndoRedoStack may not contain valid references to edited wires, if this becomes an issue please let me know
Includes intellisense integration if the mod file is unzipped in the working directory
on_circuit_wire_added, on_circuit_wire_removed, on_circuit_network_created, on_circuit_network_destroyed, on_circuit_network_merged, on_circuit_network_split: (pre_ circuit events are also supported)
uintplayer_index: The index of the player that caused the event.uinttick: Tick the event was generated.?LuaEntitysource: The source entity of the wire connection. May not exist if the entity was destroyed.defines.wire_connector_idsource_connector_id: The source connector of the wire connection.?LuaEntitydestination: The destination entity of the wire connection. May not exist if the entity was destroyed.defines.wire_connector_iddestination_connector_id: The destination connector of the wire connection.defines.wire_typewire_type: The wire type of the connection.
on_electric_wire_added, on_electric_wire_removed, on_electric_network_created, on_electric_network_destroyed, on_electric_network_merged, on_electric_network_split: (pre_ electric events are also supported)
uintplayer_index: The index of the player that caused the event.uinttick: Tick the event was generated.?LuaEntitysource: The source entity of the wire connection. May not exist if the entity was destroyed.defines.wire_connector_idsource_connector_id: The source connector of the wire connection.?LuaEntitydestination: The destination entity of the wire connection. May not exist if the entity was destroyed.defines.wire_connector_iddestination_connector_id: The destination connector of the wire connection.defines.wire_typewire_type: The wire type of the connection.
Explicit support definitions (what events trigger what): on_pre_circuit_wire_added supports the following: player placing wires on ghost and normal entities, [platforms/robots/players/scripts(opt-in)/blueprint placement] building ghosts with ghost wires into entities that then create wires on_circuit_wire_added supports the following: player placing wires on ghost and normal entities, [platforms/robots/players/scripts(opt-in)/blueprint placement] building ghosts with ghost wires into entities that then create wires on_pre_circuit_wire_removed supports the following: player removing wires from ghost and normal entities, [platforms/robots/players/scripts(opt-in)/environment/blueprint placement] destroying non-ghost entities with wires on_circuit_wire_removed supports the following: player removing wires from ghost and normal entities, [platforms/robots/players/scripts(opt-in)/environment/blueprint placement] destroying non-ghost entities with wires on_pre_circuit_network_created supports the following: player placing wires on normal entities, [platforms/robots/players/scripts(opt-in)/blueprint placement] building ghosts with ghost wires into entities that then create wires on_circuit_network_created supports the following: player placing wires on ghost and normal entities, [platforms/robots/players/scripts(opt-in)/blueprint placement] building ghosts with ghost wires into entities that then create wires on_pre_circuit_network_destroyed supports the following: player removing wires from normal entities, [platforms/robots/players/scripts(opt-in)/environment/blueprint placement] destroying non-ghost entities with wires on_circuit_network_destroyed supports the following: player removing wires from ghost and normal entities, [platforms/robots/players/scripts(opt-in)/environment/blueprint placement] destroying non-ghost entities with wires on_pre_circuit_network_merged supports the following: player placing wires on normal entities, [platforms/robots/players/scripts(opt-in)/blueprint placement] building ghosts with ghost wires into entities that then create wires on_circuit_network_merged supports the following: player placing wires on normal entities, [platforms/robots/players/scripts(opt-in)/blueprint placement] building ghosts with ghost wires into entities that then create wires on_pre_circuit_network_split supports the following: player removing wires from normal entities, [platforms/robots/players/scripts(opt-in)/environment/blueprint placement] destroying non-ghost entities with wires. NOT FIRED WHEN POWERPOLES ARE SHIFT+CLICKED TO REMOVE WIRES on_circuit_network_split supports the following: player removing wires from normal entities, [platforms/robots/players/scripts(opt-in)/environment/blueprint placement] destroying non-ghost entities with wires
on_pre_electric_wire_added supports the following: player placing wires on ghost and normal entities, [platforms/robots/players/scripts(opt-in)/blueprint placement] building ghosts with ghost wires into entities that then create wires
Highlights
From source dataGame versions
Built for Factorio 2.1.
Footprint
Rated a light load on a server.
License
Published under Sunset Protocol License.
Protocol's Extended Runtime Event Library on Nxeon
From our catalogue- One-click install
- Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
- Server side
- Required on the server
- Server load
- light
- Smallest plan we suggest
- Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
- Latest build
- 1.2.2, released 2026-08-25
Run Protocol's Extended Runtime Event Library on a Factorio server
Pick a server or deploy a new one above; it is installed in one click.
What kind of mod it is
From the catalogLibraries & compatibility
Foundations and fixes other mods build on. Usually installed because something else needs it.
Runs on your server
From source side supportFactorio Mod Portal lists Protocol's Extended Runtime Event Library as required on the server. Check its Factorio Mod Portal page to see whether players need it too.
Compatibility
- Game
- Factorio
- Runs on
- Serverrequired on the server
- Game versions
- 2.1
Verified at the source
- ✓Factorio Mod PortalOfficial listing, checked 2026-10-08Open ↗
- ✓Authorprotocol_1903, as published on Factorio Mod Portal
- ✓LicenseSunset Protocol LicenseFree
