LithoCost

版本 v1.0.0·更新於 2026-10-03

Customize stone, black marble, Grausten, crystal, and other rock-based Valheim building costs per material or piece.

模組介紹 作者原文

LithoCost

LithoCost lets you change the resource and quantity required by Valheim building pieces that use stone, black marble, Grausten (Ashlands stone), crystals, obsidian, or other rock-like materials.

You can set one cost for every piece using a material, or give an individual piece its own override. For example, make a black-marble wall cost Stone x 1 or Stone x 10000. Other non-rock ingredients on that piece stay unchanged.

Install

Install Mod Manager or r2modman. Requires BepInExPack for Valheim.

Configure

Run Valheim once with the mod installed. LithoCost scans the build-piece catalog and creates sections in:

BepInEx/config/com.lithocost.valheim.cfg

Edit the file and restart Valheim for changes to take effect.

Change one piece

Find a section named Piece:, for example:

[Piece: piece_blackmarble_wall_2x1]

Enabled = true

ReplacementPrefab = Stone

Amount = 10000

Piece rules replace all rock-like ingredients for that piece and take priority over material rules. The prefab ID is the section name generated by the mod; use it exactly as shown.

Change every piece using one material

Find a section named Material:, such as Material: BlackMarble, then set Enabled = true, choose a ReplacementPrefab, and set Amount.

ReplacementPrefab is Valheim's internal item prefab ID, such as Stone, BlackMarble, or Crystal. Amount = 0 removes that rock cost. Invalid item IDs are ignored and the original cost is retained.

Add modded rock materials

The General section contains RockResourceKeywords. Add comma-separated words that appear in a modded material's prefab ID, then restart. The default terms are stone,marble,grausten,rock,crystal,obsidian.

Multiplayer

LithoCost changes local build requirements and does not synchronize settings. Install it with the same configuration for every player who builds in a multiplayer world.

Disclosure

AI tools were used to generate a substantial portion of this mod. Select 's AI Generated category when uploading.

Español

LithoCost te permite cambiar qué material y cuánta cantidad cuestan las piezas de construcción que usan piedra, mármol negro, Grausten (piedra de las Tierras de Ceniza), cristales, obsidiana u otros materiales rocosos.

Puedes configurar un coste para todas las piezas que usan un material o establecer una excepción para una pieza concreta. Por ejemplo, puedes hacer que una pared de mármol negro cueste Stone x 1 o Stone x 10000. Los ingredientes que no sean rocosos se conservan.

Instalación

Instala LithoCost con Mod Manager o r2modman. Necesitas BepInExPack para Valheim. Inicia Valheim una vez para que el mod detecte las piezas de construcción y cree el archivo de configuración:

BepInEx/config/com.lithocost.valheim.cfg

Después de editarlo, reinicia Valheim para aplicar los cambios.

Cambiar el coste de una pieza

Busca una sección [Piece:...] en el archivo. El mod genera una para cada pieza rocosa detectada. Usa exactamente el ID que aparece en tu archivo. Por ejemplo:

[Piece: piece_blackmarble_wall_2x1]

Enabled = true

ReplacementPrefab = Stone

Amount = 10000

  • Enabled = true activa la regla.
  • ReplacementPrefab es el ID interno del objeto que quieres cobrar; por ejemplo, Stone, BlackMarble o Crystal.
  • Amount es la cantidad por pieza. Pon 0 para quitar el coste rocoso de esa pieza.

La regla individual reemplaza todos los ingredientes rocosos de esa pieza y tiene prioridad sobre la regla general del material. Los demás ingredientes no cambian.

Cambiar el coste de todas las piezas de un material

Busca una sección [Material:...], por ejemplo [Material: BlackMarble]. Activa Enabled = true y configura ReplacementPrefab y Amount con los mismos valores explicados arriba. La regla se aplicará a todas las piezas detectadas que usen ese material y que no tengan una regla individual activada.

Si el ID de objeto escrito en ReplacementPrefab no existe, LithoCost avisa en el registro y conserva el coste original.

Materiales de otros mods

En

安裝與使用 安裝:BepInEx 外掛

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

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

前置依賴

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

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
LithoCost-1.0.0.zip
檔案大小
15.9 KiB