Train Container

by yuna495

Merge straight rows of chests into large train-length containers with quality, circuit network, and blueprint support.

Content
7 days ago
2.0
81
Logistics Trains Storage
Owner:
yuna495
Source:
https://github.com/yuna495/FactorioMo...
Homepage:
N/A
License:
MIT
Created:
7 days ago
Latest Version:
1.0.0 (7 days ago)
Factorio version:
2.0
Downloaded by:
81 users

Train Container lets you merge straight rows or columns of chests into a single large container.

It is designed mainly for train stations and large logistics areas where many adjacent steel chests would otherwise be required.

Features

  • Merge contiguous steel chests into one Train Container
  • Supports both horizontal and vertical layouts
  • Supports lengths from 2 to 83 tiles
  • Split a Train Container back into its original chest row at any time
  • No additional chests are required when splitting
  • Preserves item contents during merge and split
  • Prevents transformations if items cannot be moved safely
  • Supports chest quality
  • All source chests must have the same quality
  • The resulting Train Container keeps that quality
  • Splitting restores chests with the same quality
  • Preserves red and green circuit-network connections
  • Supports Infinity Chests in editor/cheat mode
  • Blueprint and copy/paste support

Blueprint Behavior

When a normal Train Container is copied or added to a blueprint, it is automatically recorded as the equivalent row of steel chests.

This allows Factorio's normal blueprint rotation and mirroring to work correctly.

When the blueprint is placed, normal steel chests are created. They are not automatically merged back into a Train Container; use the merge tool again if desired.

Quality and supported circuit connections are preserved in the blueprint.

Performance

Once created, a Train Container is a normal Factorio container entity.

The mod does not use on_tick processing or continuously scan containers. Merging multiple chests into a single entity can also reduce the number of chest entities in large builds.

Usage

  1. Place two or more steel chests in a straight, contiguous row or column.
  2. Use the Train Container Merge Tool to select them.
  3. They are replaced by a single Train Container.
  4. Select an existing Train Container with the same tool to split it back into chests.

Only straight 1 x N and N x 1 layouts are supported.

Compatibility

Tested with Factorio 2.0.77.

Credits

Train Container contains code and graphics derived from:

WideChests
by Atria1234

WideChests is licensed under the MIT License.