HammerSearch

版本 v1.0.0·更新於 2026-09-26

Search Valheim's build menu by piece name or build material. Ranks the closest matches first, supports modded pieces, and works with the hammer, hoe, and cultivator.

模組介紹 作者原文

Hammer Search

Find the build piece you want without browsing every tab. Hammer Search adds a search field above Valheim's build menu and filters pieces by name or build material, with the closest matches first.

  • Search vanilla and modded pieces, materials, and build categories.
  • Use the same search field with the hammer, hoe, and cultivator.
  • Search localized display names, with token and prefab names as fallbacks.
  • Keep your filter while placing pieces and cycling through them with the scroll wheel.
  • Client-side: install on your game client; no server installation is needed.

Requires BepInExPack Valheim. No Jotunn or additional mod dependency is required.

Installation

Mod manager

Install HammerSearch through Mod Manager or r2modman. The declared BepInEx dependency installs automatically. Launch Valheim using the mod manager.

Manual

  • Install BepInExPack Valheim and follow its setup instructions.
  • Extract this package and copy HammerSearch.dll into Valheim/BepInEx/plugins/HammerSearch/ (create the folder if needed).
  • Launch the game once to generate the configuration file.

To uninstall, remove HammerSearch.dll or uninstall it through your mod manager.

Using the search

  • Equip a build tool and open its build menu.
  • Click the search field or press Left Ctrl+F to focus it, then type.
  • Press Esc to leave the field and resume normal keyboard controls. Click the clear button to clear the search.

Automatic focus is off by default. While the field has focus, movement and other gameplay keyboard input are blocked so typing does not move your character.

| Search | Finds |

| --- | --- |

| door | Pieces with matching names or materials, ranked by relevance |

| stone | Name matches first, followed by pieces built from stone |

| black marble wall | Pieces where all three terms match a name or material |

| m:bronze | Materials only: pieces that require bronze |

| n:wall | Names (also descriptions if enabled), ignoring materials |

Search is case-insensitive. mat: and name: are aliases for m: and n:. Material searches require MatchMaterials to be enabled.

For each term, exact matches rank above prefixes, word prefixes, and other substring matches. Name matches score better than material matches. Scores are combined for multiword searches, and ties preserve the original piece order within each category.

If your current category has no matches, the menu switches to the first category that does. Searching only filters pieces the game already makes available; it does not unlock recipes or remove building requirements.

Persistent filters

By default, your filter stays active after you close the build menu. Reopening shows the same results, and scroll-wheel piece cycling stays within those results. The query is kept for the current game session, not saved across game restarts.

If pieces seem to be missing, reopen the menu and clear the search. To reset the search whenever the menu closes, set KeepFilterOnClose = false in the config, or use the F5 console:

hammersearch_persist off

hammersearch_persist on enables persistence; hammersearch_persist with no argument toggles it. The preference is saved to the config. Turning it off while the build menu is closed also clears an active filter immediately. No devcommands is required. Enable Valheim's console with the -console launch argument if F5 does not open it.

Configuration

Config file: BepInEx/config/com.austinwitt.hammersearch.cfg (inside your profile when using a mod manager). Close the game before editing the file manually. An optional Configuration Manager can also expose these settings in-game.

| Section | Setting | Default | Effect |

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

| General | Enabled | true | Enable the plugin; restart after changing this setting |

| Search | MatchMaterials | true | Include build materials in searches |

| Search | MatchDescriptions | false | Include piece descriptions in searches |

| Search | AutoSwitchCategory | true | Switch categories wh

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
HammerSearch-1.0.0.zip
檔案大小
20.9 KiB