SortHeim

版本 v1.0.1·更新於 2026-10-11

One-click sorting for chests and your inventory: by name, weight, or rarity (biome tier). Keeps your hotbar and equipped gear in place.

模組介紹 作者原文

SortHeim

One-click sorting for chests and your inventory in Valheim — by name, weight, or rarity.

Usage

Open your inventory or a chest. Small buttons appear beside your inventory and under the chest (hover for a tooltip):

| Button | Sorts by |

| --- | --- |

| A-Z | Item name, alphabetically (in your game language) |

| Encumbered icon | Weight, heaviest first |

| Gem icon | Rarity: biome tier, latest biome first |

Partial stacks of the same item are merged first. When sorting your inventory, your hotbar row and equipped gear never move.

How rarity works

Valheim has no rarity stat, so SortHeim ranks items by the biome they come from:

0 Meadows → 1 Black Forest → 2 Swamp → 3 Mountain → 4 Plains → 5 Mistlands → 6 Ashlands → 7 Deep North

Raw materials and trophies come from a built-in table. Anything crafted, smelted, cooked or brewed takes the highest tier among its ingredients (via its cheapest recipe), so modded items with recipes are ranked automatically. Items with no known tier go last. To fix or add one, use TierOverrides, e.g. TrophyMoose=7, MyModdedOre=5 (prefab names).

Configuration

Edit in Gale's config editor, or BepInEx/config/mbaya.SortHeim.cfg:

| Section | Key | Default | Notes |

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

| UI | ShowChestButtons / ShowInventoryButtons | true | Hide either set of buttons |

| UI | ChestButtonOffset / InventoryButtonOffset | (0, -6) / (6, 0) | Nudge the buttons if they overlap another mod's UI |

| UI | ButtonWidth | 0 | 0 = automatic compact width |

| Inventory | KeepHotbar | true | Never move hotbar items (slots 1-8) |

| Inventory | KeepEquipped | true | Never move equipped items |

| Sorting | MergeStacks | true | Combine partial stacks first |

| Sorting | UseStackTotals | true | Compare whole-stack weight instead of per-item |

| Sorting | NameDirection / WeightDirection / RarityDirection | Asc / Desc / Desc | |

| Sorting | TierOverrides | (empty) | PrefabName=Tier pairs |

| Hotkeys | SortByName / SortByWeight / SortByRarity | (none) | Sorts the open chest, or your inventory if none is open |

Multiplayer

Client-side only; other players don't need it. Chests are only sorted while you have them open (which makes you their owner), so it's safe on dedicated servers.

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
SortHeim-1.0.1.zip
檔案大小
22.8 KiB