HarnessPrefabs

版本 v1.1.4·更新於 2026-10-08

Unlock and harness existing vanilla and modded prefabs with server-synced YAML policies, public Hammer access, admin-only debug groups, and safer prefab filtering. Use the Dvergr barrel as a fermenter

截圖 共 2 張

模組介紹 作者原文

HarnessPrefabs

Scans vanilla Valheim and loaded prefab-adding mods for existing prefabs that are not normally available in the Hammer build table, then lets the server decide which ones become public build pieces and which ones stay admin-only.

It does not add new prefabs. It helps you harness the prefabs that are already there.

Targets Valheim 1.0.7 with BepInExPack Valheim 5.4.2350. Jotunn is no longer required by HarnessPrefabs; keep it installed if other mods require it.

Swap equipment with the vanilla armor stand and the additional armor stands unlocked by HarnessPrefabs.

Dvergr barrel(enhanced lod) can be used as a fermenter. Fermenting time is configurable.

Why Use It

  • Open useful vanilla and modded prefabs without shipping another hard-coded prefab dump.
  • Keep normal players on curated public build tabs while giving admins debug-only review tabs.
  • Replace MoreVanillaBuildPrefabs-style public unlocks with YAML policy files you can review, copy, and override.
  • Use MVBP-informed defaults for categories, requirements, placement flags, snap fixes, and icon behavior where those defaults are known.
  • Keep the server as the source of truth through ServerSync, so clients receive the active prefab policy and localization text.
  • Avoid Hammer clutter from runtime-only objects such as effects, projectiles, ragdolls, creatures, humanoids, and item drops.

What It Does

HarnessPrefabs builds a safe review workflow around hidden prefabs:

  • Discover buildable-looking prefabs from Valheim and loaded mods.
  • Ignore prefabs that are unsafe for Hammer placement, such as characters, item drops, spawners, runtime effects, projectiles, ragdolls, and similar controller objects.
  • Seed defaults from reviewed MoreVanillaBuildPrefabs data when a prefab is known there.
  • Classify the rest into public or admin categories based on components and prefab shape.
  • Write reference YAML files for review.
  • Apply only the overrides you choose to write.
  • Sync the active policy from the server to clients.

This makes it useful both as a MoreVanillaBuildPrefabs replacement for curated public pieces and as an admin review tool for larger modpacks.

Hammer Categories

In Valheim 1.0.7, admin-only prefabs appear in a top-level HarnessPrefabs section beside Categories, Materials, Recent, and Favorites. The section appears only for an administrator with Valheim debugmode enabled. Its prefabs do not enter the native lists, so they cannot leak through Categories, Materials, Recent, or Favorites. The Show Harness Tabs configuration key keeps its existing name and can hide the section.

Public groups retain the existing YAML category names:

  • Misc
  • Crafting
  • Building
  • BuildingStonecutter
  • Furniture

The HarnessPrefabs section contains three admin-only groups:

  • Harness Nature
  • Harness Structures
  • Harness Props

The client-side Show Harness Tabs config can hide the entire HarnessPrefabs section even while debugmode is on.

Default Classification

Known MVBP public pieces default to public access. Other discovered prefabs default to the Harness Nature, Structures, or Props admin groups unless an explicit YAML policy assigns a public category.

Both enabled public and admin prefabs receive a Piece component when needed, even while the admin tab is hidden. A root ZNetView is required for build registration; a missing view or one only on a child causes the prefab to be skipped with a warning. Discovery/reference YAML can still list such a prefab. Disabling a rule stops new build-menu exposure but does not remove an already added component.

Newly added Piece components exclude instances without a player creator from AI target selection while retaining the target flags for player-built instances. Existing native Piece target settings are preserved. Shared prefab changes, including supported collider and snap-point fixes, still apply; this does not make natural objects completely unaffected by the mod.

General classification uses prefab components

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
HarnessPrefabs-1.1.4.zip
檔案大小
374.3 KiB