Circuit Power Switch

by rullaf

Extends the vanilla power switch with independent left and right red/green circuit connections that follow the electrical switch state.

Tweaks
5 hours ago
2.1
5
Circuit network

Changelog

Version: 0.3.3
Date: 2026-09-02
  Features:
    - Extended every vanilla power switch with independent left and right red/green circuit terminals.
    - Red connects to red and green connects to green only while the electrical switch is closed.
    - Kept the native power-switch GUI, Enable when option, condition evaluation, and switch state.
    - Added support for copper, red, and green wires on either half of the switch.
    - Added blueprint-aware terminal creation, adoption, wiring, and cleanup.
  Optimizations:
    - Reads one cached power-switch state per switch per tick without enumerating circuit signals.
    - Distributes terminal-wire maintenance across 60 ticks and mutates internal wires only on changes.
  Compatibility:
    - Requires Factorio 2.1; Space Age is not required.
    - Existing vanilla power switches are extended automatically when a save is loaded.