SortContainers
Adds a sort button to chests and other containers that alphabetically sorts (and stacks) their contents. Client-side.
截圖 共 1 張
模組介紹 作者原文
Sort Containers
A small client-side Valheim mod that adds a sort button to chests and every other container window.
Click it and the container's contents are laid out alphabetically, row by row. Partial stacks of the same item are combined on the way (optional).
- The button sits just right of the vanilla Place stacks button and matches its styling.
- Sorting is by item name, then quality (highest first), then stack size.
- Works on any container: chests, carts, ships, reinforced chests, modded containers that use the vanilla window.
- Nothing is dropped, lost or moved between inventories. It only rearranges what is already in the container.
Installation
Install with r2modman Mod Manager, or drop SortContainers.dll into BepInEx/plugins.
Requires BepInExPack Valheim and Jötunn. Client-side only: the server does not need it. The client that has a container open already owns its data, so the sorted layout is saved and synced exactly like the vanilla "Place stacks" button.
Configuration
BepInEx/config/dsoltyka.SortContainers.cfg is created on first launch.
| Section | Setting | Default | Meaning |
| --- | --- | --- | --- |
| General | MergeStacks | true | Combine partial stacks of the same item while sorting |
| Layout | ButtonGap | 4 | Gap between "Place stacks" and the sort button, in pixels |
| Layout | ButtonSize | 0 | Button size in pixels; 0 matches the "Place stacks" height |
| Layout | IconPadding | 6 | Inset of the icon inside the button |
Layout settings take effect the next time the container window is created (relog or restart).
Source
Code is on GitHub at dsoltyka/ValheimSortContainers.
License
MIT. See LICENSE.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: