SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedLibraries & compatibility

Protocol's Extended Runtime Event Library

by protocol_1903 · for Factorio

A Mods for Factorio, version 2.1.

23KDownloads
3 mo agoLast updated
Sunset Protocol LicenseLicense
2.1Latest game version

About Protocol's Extended Runtime Event Library

From Factorio Mod Portal

A Mods for Factorio, version 2.1.

ko-fi

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)

  • uint player_index: The index of the player that caused the event.
  • uint tick: Tick the event was generated.
  • ?LuaEntity source: The source entity of the wire connection. May not exist if the entity was destroyed.
  • defines.wire_connector_id source_connector_id: The source connector of the wire connection.
  • ?LuaEntity destination: The destination entity of the wire connection. May not exist if the entity was destroyed.
  • defines.wire_connector_id destination_connector_id: The destination connector of the wire connection.
  • defines.wire_type wire_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)

  • uint player_index: The index of the player that caused the event.
  • uint tick: Tick the event was generated.
  • ?LuaEntity source: The source entity of the wire connection. May not exist if the entity was destroyed.
  • defines.wire_connector_id source_connector_id: The source connector of the wire connection.
  • ?LuaEntity destination: The destination entity of the wire connection. May not exist if the entity was destroyed.
  • defines.wire_connector_id destination_connector_id: The destination connector of the wire connection.
  • defines.wire_type wire_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

Read the full description on Factorio Mod Portal →

Highlights

From source data

Game 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 catalog
Listed on Factorio Mod Portal as “Mods”

Libraries & compatibility

Foundations and fixes other mods build on. Usually installed because something else needs it.

Runs on your server

From source side support

Factorio 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

Protocol's Extended Runtime Event Library, answered

Generated from the mod’s own source data.

Do my players need to install Protocol's Extended Runtime Event Library?

Factorio 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.

Is it free?

Yes. Protocol's Extended Runtime Event Library is free to download from Factorio Mod Portal. Its license is Sunset Protocol License.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Protocol's Extended Runtime Event Library on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Protocol's Extended Runtime Event Library in one click.