ValheimPrefabParser

版本 v2.0.0·更新於 2026-02-22

Developer tool: dumps and categorizes all 6000+ Valheim prefabs to a text file. For modders and testers only — no gameplay changes.

模組介紹 作者原文

Valheim Prefab Parser

⚠️ This is a developer / modder tool — it adds nothing to gameplay.

If you are a regular player looking for new content, this mod is not for you.

A lightweight BepInEx plugin that scans all of Valheim's loaded prefabs at runtime,

categorizes them, and writes a structured report to a text file next to the plugin.dll.

Intended for mod authors and QA testers who need a quick reference of every

prefab name available in the current game version — including those added by other mods.

What it does

On every game load the mod waits for both ObjectDB and ZNetScene to finish

initializing, then collects all prefabs from three sources:

  • ObjectDB.m_items and m_recipes — all items and crafting recipes
  • ZNetScene.m_prefabs — every networked object registered in the scene
  • Resources.FindObjectsOfTypeAll — remaining Unity assets not in either registry

The result is a single.txt file with a summary table and a full list sorted into

32 categories (weapons, armor, creatures, buildings, VFX, etc.).

Typical output: 6000+ prefabs across 32 categories.

Who needs this

| Use case | Fits? |

|---|---|

| Writing a mod and need exact prefab names | ✅ |

| Testing whether a mod registers its prefabs correctly | ✅ |

| Comparing prefab lists between game versions | ✅ |

| Building a content mod and want to kitbash vanilla assets | ✅ |

| Playing Valheim for fun | ❌ install something else |

Installation

  • Install BepInExPack for Valheim if you haven't already.
  • Drop ValheimPrefabParser.dll into BepInEx/plugins/ValheimPrefabParser.
  • Launch the game and load any world.
  • The output file appears at BepInEx/plugins/ValheimPrefabParser/valheim_prefabs.txt.

Configuration

Config file is generated at BepInEx/config/com.yourname.valheimprefabparser.cfg on first run.

| Key | Default | Description |

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

| UseCoroutine | true | Spread parsing across frames to avoid a freeze on load |

| OutputFileName | valheim_prefabs.txt | Name of the output file |

| IncludeComponentList | false | Print every Unity component on each prefab (makes the file large) |

Output format

╔══════════════════════════════════════════════════════════╗

║ VALHEIM PREFAB PARSER — FULL LIST ║

╚══════════════════════════════════════════════════════════╝

Date: 2026-02-22 18:45:01

Total prefabs: 6284

Categories: 32

── SUMMARY ─────────────────────────────────────────────────

01_Weapons 87 pcs.

02_Shields 18 pcs....

── DETAILED LIST ────────────────────────────────────────────

┌─ 01_Weapons (87)

│ AtgeirBlackmetal

│ AtgeirBronze

│...

└────────────────────────────────────────────────────────────

Categories

01_Weapons · 02_Shields · 03_Armor · 04_Ammunition · 05_Food · 06_Consumables ·

07_Materials · 08_Trophies · 09_Tools · 10_Torches · 11_Utility · 12_Other_Items ·

13_Buildings · 14_Bosses · 15_Player · 16_Humanoids · 17_Monsters · 18_Tameable ·

19_Creatures · 20_Plants · 21_Trees · 22_Minerals · 23_Containers ·

24_Crafting_Stations · 25_Fireplaces · 26_Portals · 27_Pickables · 28_Spawners ·

29_Ships · 30_Projectiles · 31_VFX_Effects · 32_SFX · 99_Other

Compatibility

  • No gameplay changes, no ZDO writes, no RPC calls.
  • Read-only — safe to add or remove mid-modpack without side effects.
  • Works alongside any other mod; does not patch any method that other mods commonly touch.
  • Tested on Valheim 0.220.x.

Source code

github.com/SkarifWW/Valheimprefabparser

Changelog

See CHANGELOG.md.

Made by Skarif — for modders, by a modder.

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
ValheimPrefabParser-2.0.0.zip
檔案大小
150.3 KiB