Auto Merge Stacks


Automatically merges fragmented item stacks in chests: e.g. 12 + 38 of the same item sitting in two slots become one stack of 50. Only touches chests that are actually fragmented, so tidy/arranged chests are left alone.

Content
7 days ago
2.0
10
Storage
Owner:
ed_mercer
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
7 days ago
Latest Version:
0.1.0 (7 days ago)
Factorio version:
2.0
Downloaded by:
10 users

Auto Merge Stacks

A chest showing 12 + 38 of the same item across two slots? This quietly merges them back into one stack of 50.

Factorio lets the same item sit as several partial stacks in one chest — inserters drop into whatever slot is free, bots and splitters leave gaps, and you end up with fragmented inventories that waste slots and look messy. This mod walks your chests and, for any that are actually fragmented, merges the partial stacks. It only touches fragmented chests, so chests you've arranged by hand are left exactly as they are.

What it does

  • Merges fragmented item stacks in a chest into full stacks (e.g. 12 + 38 → one stack of 50).
  • Only touches fragmented chests — tidy, hand-arranged chests are never reshuffled.
  • Applies to containers and logistic containers. Infinity chests, linked chests and vehicle inventories are skipped.
  • Round-robin processing, so it stays light on UPS even with thousands of chests.

Settings

  • Chests checked per tick — how many chests are checked each tick (round-robin). Higher = fragments merge sooner, slightly more UPS.

Notes

  • Affects chests only — your character/player inventory is never touched.
  • No setup: install it and it works.