HammerCraftingMaterials
Right-click any piece in the hammer build menu to pull its required materials from nearby chests directly into your inventory. Configurable search radius.
模組介紹 作者原文
HammerCraftingMaterials — Valheim Mod
Right-click any piece in the hammer build menu to pull its required materials from nearby chests directly into your inventory.
Features
| Feature | Detail |
|----------------------------|---------------------------------------------------------------------------------------------------------------------------------|
| Right-click pull | Open the hammer build menu, right-click any piece to pull its materials you are short in your inventory |
| Shift+Right-click pull | Open the hammer build menu, shift+right-click any piece to pull all its materials regardless of what you have in your inventory |
| Smart search | Searches all accessible chests within a configurable radius (default 10 m) |
| Partial pulls | Pulls as much as it can find and reports what's still missing |
Requirements
- Valheim (any recent version)
- BepInEx 5.4.x for Valheim — install or r2modman
Installation
Option A — r2modman Mod Manager (recommended)
- Open r2modman, select your Valheim profile.
- Click Install from file and select the HammerCraftingMaterials-1.1.1.zip package.
- Launch Valheim through the mod manager.
Option B — Manual
- Make sure BepInEx is installed in your Valheim folder.
- Copy HammerCraftingMaterials.dll into:
Valheim/BepInEx/plugins/HammerCraftingMaterials/HammerCraftingMaterials.dll
- Launch Valheim.
Configuration
Config file is auto-generated on first launch at:
Valheim/BepInEx/config/com.hammercraftingmaterials.valheim.cfg
| Key | Default | Description |
|---------------------|---------|----------------------------------------------|
| ChestSearchRadius | 10 | Radius in metres to search for nearby chests |
How It Works
- Equip your hammer and open the build menu.
- Right-click any piece in the piece selection list.
- The mod:
- Checks what materials that piece requires.
- Counts what you already have in your inventory.
- Searches all nearby, accessible chests within ChestSearchRadius metres.
- Removes only the missing materials from chests and adds them to your inventory.
- Displays a MessageHud popup summarizing what was pulled (and what's still missing).
- (Optional Shift+Right-click ignores your inventory and removes all needed materials from chests and adds them to your inventory.)
Known Limitations
- Chests inside a ward you don't have access to are skipped.
- If your inventory is full, items that can't stack will not be pulled.
License
MIT — do whatever you want, attribution appreciated.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: