ImprovedBeltBag
Configurable belt bags: choose which item types they hold (tools, shotgun, knife, signs, scrap) with per-type limits, capacity, weight, and a resizable slot grid. Host-authoritative.
About this mod Author’s original text
ImprovedBeltBag
Language / Язык: English · Русский
A BepInEx mod for Lethal Company that makes Belt Bags configurable — decide exactly
which item types they accept, cap each type, add weight, and resize the slot grid.
- Per-type item categories, each with its own Allow + Max Amount:
Tools, Shotgun, Knife, Signs, One Handed Scrap, Two Handed Scrap, Deny,
plus per-item overrides. So you can, say, let the bag carry tools/shotguns/knives but
not generic metal loot — and limit how many one-handed vs two-handed junk items fit.
- Capacity and grab range (host-enforced).
- Weight: the bag weighs you down by its contents (vanilla bags are weightless).
- Resizable slot grid: the inventory UI shows the configured number of slots, centred
with the original spacing.
- HUD tips + an "empty bag" action (right-interact while holding it).
Multiplayer (host-authoritative)
Bigger/permissive bags are a competitive advantage, so this is host-authoritative: the
tweaks stay off on a client until the host confirms it has the mod, and every add is
validated server-side against the host's config. A lone modded client in a vanilla
lobby gets no advantage, and clients can't exceed the host's limits. Vanilla clients can
still join.
Compatibility with other belt bag mods
This mod only touches the vanilla belt bag. Mods that add their own bag do it by cloning
the vanilla prefab, so their bag runs the same code and would otherwise be caught by every
patch here — having its items rejected, its weight counted twice and its slot grid resized.
The vanilla bag is identified once at startup, and any other bag is left to the mod that owns it.
A belt bag found on a moon counts as the vanilla bag. Mods that turn store items into scrap
build those through LethalLib, which clones the item, so the found bag is recognised by the id
and name it inherited rather than by identity.
Install
- Install BepInEx 5 (BepInExPack for Lethal Company).
- Put Iron.ImprovedBeltBag.dll in Lethal Company/BepInEx/plugins.
- Launch once to generate BepInEx/config/Iron.ImprovedBeltBag.cfg.
Config (Iron.ImprovedBeltBag.cfg)
| Section | Key | Default | Meaning |
|---------|-----|---------|---------|
| General | Enabled | true | Master switch. |
| Slots | Capacity | 15 | How many items fit. |
| Slots | Resize Inventory UI | true | Rebuild the slot grid to match Capacity. |
| Slots | Slots Per Row | 5 | Columns in the rebuilt grid. |
| Items | Per-Item Overrides | Body: Deny, Apparatus: Deny | ItemName: Category map. |
| Category.\* | Allow / Max Amount | — | Per-category toggle + cap. Tools/Shotgun/Knife/Signs on; scrap off. |
| Weight | Enabled / Multiplier | true / 1.0 | Contents add weight. |
| Misc | Grab Range / Tooltips / Empty Bag Action | 4 / on / on | Empty is a double tap of right-interact (E). |
| Misc | Empty Bag Double Tap Window | 0.4 | Seconds the second press has to land in. |
| Host | Enforce Capacity / Restrictions / Range | on | Server-side checks. |
Credits
The networking model and item-category system are adapted from BagConfig by
The Matty (mattymatty) (MIT) —. The
weight feature and resizable slot grid are original. See THIRD_PARTY_LICENSES.md.
Build
dotnet build -c Release → bin/Release/Iron.ImprovedBeltBag.dll. Uses the publicized
LethalCompany.GameLibs.Steam NuGet package (match the version to your build).
ImprovedBeltBag — Русское описание
⤴ English
Мод на BepInEx, делающий belt bag (поясную сумку) настраиваемой — ты сам решаешь, какие
типы предметов она принимает, ставишь лимиты, вес и меняешь число слотов.
- Категории по типам, у каждой свои Allow + Max Amount:
Tools (инструменты), Shotgun, Knife, Signs (знаки), One Handed Scrap,
Two Handed Scrap, Deny, плюс пер-предметные оверрайды. Можно, например, разрешить
инструменты/дробовик/ножи, но запретить металлолом — и отдельно ограничить, сколько
влезает одноручного и двуручного хлама.
- Вместимость и дальность захвата (энфорсятся хостом).
- Вес: сумка тяжелеет от содержимого (ванильные — невесомые
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: