Confirm with your password

RepairRequiresCoins

Fork of aedenthorn/RepairRequiresMats. Repair your gear using Coins. Updated for Valheim 1.0.

· Website

Stars
0
Downloads
56
Version
1.2.11
Updated
Author
cjayride
Virus scan
✓ Scan successful
Runs on
Client-only
Required by
1 mods

Description

🪙 RepairRequiresCoins

Updated for Valheim 1.0

Make repairs cost Coins. RepairRequiresCoins adds a configurable coin-based repair economy to Valheim, letting you decide how much it costs to maintain your weapons, armor, tools, and other repairable equipment.

A fork of aedenthorn's RepairRequiresMats, updated and maintained for Valheim 1.0.

Links: Thunderstore · GitHub

⚒️ How It Works

  • Repairs cost Coins. Repairable items require Coins based on the materials used to craft them.
  • Use the correct crafting station. Items must be repaired at the station type where they were crafted, such as a Workbench for a wooden hammer or a Forge for an iron axe.
  • Vanilla station-level rules apply. Repairs require the correct station at the recipe's minimum level. Item quality does not increase the station level required to repair it.
  • Customize the economy. Adjust material exchange rates to match your server's progression and coin drops.
  • Optional material costs. Choose between coin-only repairs or charging Coins alongside the original repair materials.

⚙️ Configuration

The mod uses a single configuration file:

BepInEx/config/cjayride.RepairRequiresCoins.cfg

Material Exchange Rates

The configuration defines the Coin value of materials used to craft items. Repair costs are calculated using the quantities of crafting materials required by the item's recipe and their configured exchange rates.

  • More expensive materials can be assigned higher Coin values.
  • Set a material's value to -1 to make that material contribute no repair cost.
  • Wood, Stone, and Fine Wood have default values configured for the mod's economy.
  • You may need to adjust exchange rates to suit your server's economy and Coin drop rates.

The default values were designed for the cjaycraft modpack.

Coin-Only Repairs

The setting CoinOnly controls whether repairs consume only Coins or also require the original crafting materials.

Setting Behavior
CoinOnly = true Repairs consume Coins only. Default.
CoinOnly = false Repairs consume Coins and the original repair materials.

When material costs are enabled, the required materials are shown in the repair tooltip.

🧩 Optional Mod Compatibility

These integrations are optional:

  • EpicLoot — Includes additional enchantment-related material costs in the Coin calculation for magic items when EpicLoot is installed.
  • Swmarly Valheim QOL — Repairs can use Coins stored in its Coin Purse.
  • Azumatt CurrencyPocket — Repairs can also spend Coins stored in CurrencyPocket.
  • SeneaL UI — The repair tooltip can display this mod's repair costs, including each item's icon.

When supported coin storage mods are installed, repair payments use Coins in your inventory first, followed by Coins available in the supported purse or pocket.

📋 Repair Tooltip

Hover over the repair button to view worn items at the current crafting station and their repair costs.

The tooltip uses color-coded information to make costs easy to read:

Display Meaning
White item name Item that needs repair
Green Free No Coin cost
Green material amount You have enough materials
Red material amount You lack the required materials
Yellow Coin amount You can afford the repair
Red Coin amount You cannot afford the repair
White Coins label Currency name
Red Needs Workbench Lvl: 1 or similar Wrong station or insufficient station level

Items that cannot be repaired under vanilla rules are excluded from the repair list.

🛠️ Build

Build from the project directory:

dotnet build -c Release

🙏 Credits

💬 Contact

🤖 AI Disclosure

The code was not AI-generated. AI was used to help verify compatibility with the updated game version.

Changelog

1.2.11 Latest
  • Verified against Valheim 1.0.21 (Release build).
  • BepInEx dependency set to denikson-BepInExPack_Valheim-5.4.2360.
1.2.10
  • SeneaL UI repair list shows each item's icon to the left of the name
1.2.9
  • Cannot repair when you have no coins (SeneaL was still using vanilla free repair if our item list was empty)
  • SeneaL repair tip is one title, station + coin count, and a readable item/cost list with no duplicated "Nothing to repair"
  • Repair spends Azumatt CurrencyPocket coins (same CoinPocket_CoinCount data as that purse) as well as Swmarly Valheim QOL

22 older entries, full version history & downloads →

Files

5 files · 97 KB download

Loading files…

Manual installation instructions
1

Install BepInExPack Valheim

BepInExPack Valheim is required to run mods in Valheim.

Download BepInExPack Valheim 5.4.2360 · View mod page

Check out the mod page for detailed installation instructions.

2

Install RepairRequiresCoins

This mod only needs to be installed on the client.

Download RepairRequiresCoins 1.2.11

Extract the ZIP and place the file(s) into the BepInEx/plugins/ folder inside your Valheim game folder.