Threadwork (2.1 Fork) — Belt Thread Tools


Factorio 2.1 port of Threadwork by Alvin (CoolFreeze23). Click a belt and the whole connected line gets marked for upgrade, to targets you pick. A panel (Ctrl+Shift+T) sets your belt, underground, splitter, loader and inserter targets; the Thread Upgrader (Ctrl+Shift+U) walks the connected thread and your bots swap everything over, inserters included. No tier lists and no upgrade chains: tiers are detected from belt speed, so any belt mod works. Underground pairs are skipped if the target can't span the gap. Right-click cancels. Also includes a Thread Remover.

Utilities
a month ago
2.1
44

Changelog

Version: 1.1.0
Date: 2026-10-27
  Info:
    - Forked as "threadwork-fork" and ported to Factorio 2.1. Original mod "threadwork" by Alvin (CoolFreeze23).
    - Saves that used the original mod keep their upgrade targets (info.json migrates_from).
  Changes:
    - Underground pairs are found via LuaEntity::underground_belt_neighbour (LuaEntity::neighbours was removed in 2.1).
    - Thread Upgrader no longer uses the "upgrade" selection mode flag. In 2.1 it only filters, and would drop belts without a vanilla upgrade chain.
    - Selection modes set ignore_cannot_select_tiles, which 2.1 requires for the "deconstruct" flag when a tool never selects tiles.
Version: 1.0.1
Date: 2026-07-10
  Bugfixes:
    - Threads no longer spread into unrelated belt lines. The positional-adjacency fallback (needed to walk deconstruction-marked lines) ran for every entity and ignored port geometry, letting tunnel entrances, loader container sides and parallel lines bridge networks together. It now only activates across deconstruction-marked links and only through real belt ports.
    - Threads now stop where they sideload-merge INTO another line (symmetric to the upstream sideload rule). Use alt-select or the sideload setting to include merged-into lines.
Version: 1.0.0
Date: 2026-07-10
  Major Features:
    - Initial release. Thread Upgrader: select any belt and the whole connected line (through underground pairs, along same-tier belts) is marked for upgrade by your bots.
    - Explicit upgrade targets: a panel (Ctrl+Shift+T) with one slot per class - belt, underground belt, splitter, loader (1x1), loader (1x2), inserter. No hardcoded tier tables, no next-upgrade chains: every belt mod works, including cross-family upgrades the vanilla upgrade planner refuses.
    - Inserters feeding or taking from the thread are upgraded too, when an inserter target is set.
    - Thread Remover: mark whole connected threads for deconstruction.
  Features:
    - Same-tier threading is detected by belt speed, so it is fully mod-agnostic.
    - Underground pairs are only upgraded when the target underground can span the existing gap; skipped pairs are reported.
    - Reverse-select cancels pending upgrade or removal orders on the thread.
    - Options: follow threads through splitters (default on), include sideloading inputs (default off).
    - Remote interface ("threadwork") for scripted use.