PrefabHammer

版本 v1.2.5·更新於 2026-10-02

An advanced tool to save, name, manage, and build custom multi-piece structures in Valheim using manual green pulsating highlights or radius selections.

模組介紹 作者原文

Prefab Hammer

Prefab Hammer is an advanced construction utility for Valheim. It allows players to capture custom build combinations (prefabs/blueprints) directly from their existing structures, name them, manage them in a catalog, and build them using standard resource calculations.

Features

  • Manual and Area Capturing: Select pieces individually using precise green outlines, or fall back to a radius area save.
  • Visual Multi-Row Requirements Grid: Clear, readable requirement display for complex prefabs and blueprints with enlarged icons, item names, and color-coded stock counts.
  • Movable Requirements Display: Freely reposition the requirements panel via in-game drag (Shift + Drag) or custom X/Y configuration.
  • In-Game Blueprint Trading: Swap saved custom structures directly with nearby players over the network.
  • Inline Catalog Renaming: Organize and rename your custom prefabs dynamically within the Library Catalog.
  • Stability Support Calculations: Custom designs automatically calculate structural integrity upon placement.
  • Achievement & Lifetime Build Stats: Placing blueprints accurately credits every individual piece toward your character's building stats and achievements.
  • Piece & Resource Origin Inspection: Color-coded origin tags ([Clean], [Cheated], [FreeBuild]) on crosshairs and item tooltips for placed pieces, loose ground drops, and containers.
  • Clean FreeBuild Demolition: Automatically suppresses resource drops when dismantling FreeBuild structures to avoid inventory clutter.
  • Undo History: Revert mistakes cleanly, automatically refunding construction materials at their original spots.
  • Zero Alt-Tab Lag: Captures and places large structures in small background batches across frames to prevent freezes.
  • Seamless MovingDay Compatibility: Shares the exact same selection pool in memory if the MovingDay mod is active.

Usage Guide

  • Capturing and Saving a Blueprint
  • Manual Selection: Equip the Hammer, look at any building piece, and press J to add it to your selection. Selected pieces highlight with a pulsating green overlay.
  • Clearing Selection: Press Shift + J or Ctrl + J (or press J while aiming at empty air) to clear the active selection.
  • Saving: Press K to open the Save Dialog. Enter a name for your custom prefab and click Save Combo.
  • Area/Radius Fallback: If you open the Save Dialog (press K) without selecting any pieces first, the mod automatically captures all pieces within a radius of the targeted crosshair.
  • Managing the Library Catalog
  • Opening the Catalog: Press Delete or Shift + K to open the Prefab Manager directly to the Library Catalog tab.
  • Renaming a Blueprint: In the Library Catalog list, click Rename next to any blueprint. Type the new name and click Save to update the template file and menu instantly.
  • Deleting a Blueprint: Click Delete next to any blueprint, and click Confirm? to permanently delete the blueprint.
  • Building and Requirements Display
  • Placing a Blueprint: Open your hammer build menu, navigate to the Prefab tab, select your saved blueprint, and build it like a normal piece.
  • Visual Requirements Grid: Complex prefabs display all required materials in a clean, multi-row grid of badges. Automatically integrates with chest-crafting mods (ValheimPlus, CraftFromContainers, AzuCraftyBoxes) to reflect combined materials across your bags and nearby chests:
  • Green line (e.g. 892 / 1250): Requirements are satisfied (you have 1,250 available out of 892 needed, or free build is active).
  • Red line (e.g. 892 / 14 or 892 / 0): Requirements are missing (you need 892, but only have 14 or 0 available).
  • Repositioning the Requirements Display:
  • Hold Shift (or your configured drag key) and Left-Click Drag anywhere on the requirements display to move it freely on your screen.
  • Releasing the mouse button automatically saves the position to your config file.

Batched Construction: Large blueprints build automatically over multiple frames to prevent game freezing. A progress m

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
PrefabHammer-1.2.5.zip
檔案大小
199.9 KiB