abu-TooMuchScrap icon

TooMuchScrap

A small mod for Lethal Company that reduces onboard item clutter and lag by letting players merge items of the same type with a single command.

Last updated 2 hours ago
Total downloads 3
Total rating 1 
Categories Mods Tools BepInEx Server-side Items Performance Tweaks & Quality Of Life
Dependency string abu-TooMuchScrap-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
baer1-ChatCommandAPI-0.3.1 icon
baer1-ChatCommandAPI

A Lethal Company modding API for easy creation of Minecraft-style Chat Commands

Preferred version: 0.3.1

README

TooMuchScrap — Lethal Company Mod

A small mod for Lethal Company that reduces onboard item clutter and lag by letting players merge items of the same type with a single command. Use the /merge command to combine nearby identical items into a single instance, summing their values up to a configurable cap.

Warning (Host-only command)

Only the game host can run the /merge command — clients cannot execute it. Clients do not need the mod installed to join; only the host/server needs the mod for merging to work.

Features

  • Merge items of the same internal type when they are close to each other.
  • Reduce entity count and server/client lag.
  • Configurable merge distance, maximum merged value, and which item types are eligible.

Usage

  • In-game or server console, run: /merge
  • The command scans for items listed in MergeItems and merges items of the same internal name when they are within MergeDistance. Merged item values are summed but never exceed MaxMergeValue.

Configuration

  • "MergeDistance": max distance (units) between items to consider them for merging.
  • "MaxMergeValue": maximum numeric value an item can have after merging (merged totals are clamped to this value).
  • "MergeItems": comma separated list of internal item names that should be considered for merging.

You do not need to restart the game after editing the config.

Credits

Heavily based on work by MeGaGiGaGon (ScrapMerging) — credit to MeGaGiGaGon for inspiration and reference implementation ideas.