CtrlClickSort

v1.0.0·Updated 2026-10-05

Ctrl+click an item in your inventory to send the whole stack to the nearest chest that already holds that item. Fills existing stacks first, respects wards, private chests and chests in use. Client-si

About this mod Author’s original text

CtrlClickSort

Ctrl+click an item in your inventory to send the whole stack to the nearest chest that already holds that item. You don't have to open the chest.

How it works

Open your inventory without a chest open and Ctrl+left-click an item:

  • The stack goes to the nearest chest within range (15 m by default) that already contains the same item.
  • Existing stacks in that chest are filled first, then a free slot is used.
  • If the chest runs out of room, the rest goes to the next nearest matching chest. Whatever doesn't fit anywhere stays in your inventory.
  • A short message shows what went where, e.g. Wood x50 → Wood chest (12 m).

When nothing can be stored:

| Situation | What happens |

|---|---|

| No chest within range | Vanilla behaviour: the item is dropped on the ground |

| Chests nearby, but none holds this item | Nothing is moved, a message is shown |

| A chest is open | Vanilla behaviour, unchanged |

Safety

  • Chests another player has open are skipped.
  • Chests you can't open are ignored: other players' private chests, and chests under a ward you don't have access to.
  • Equipped items and quest items are never moved.
  • Only player-built chests count. Tombstones, carts, ships and dungeon chests are ignored.
  • Before writing to a chest, the mod takes ownership of it, the same way vanilla does when you open one. Your changes are saved and synced to other players.

Configuration

File: BepInEx/config/lukas.CtrlClickSort.cfg. You can also edit it in your mod manager's config editor.

| Setting | Default | Description |

|---|---|---|

| Radius | 15 | Search radius in metres (1–100) |

| ModifierKey | LeftControl | Key to hold while left-clicking. Don't use Shift, vanilla uses it to split stacks. |

| ShowMessages | true | Show on-screen messages |

Messages appear in English, Slovak or Czech, depending on the game language.

Multiplayer

The mod is client-side only. It isn't needed on the server, and other players don't need it.

Credits

The way the mod finds nearby chests and checks access to them follows QuickStackStore by Goldenrevolver.

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. 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.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. 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. In multiplayer, the host and every client need the same mods installed.

Dependencies

Install these first, or the mod will not work:

denikson-BepInExPack_Valheim

File & checksum

Filename
CtrlClickSort-1.0.0.zip
File size
15.8 KiB