Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
HammerCostCap
Every Hammer piece costs at most 1 of each item it already needs. Client-only; works on vanilla servers. Mode switch (Capped / Free / Full) on F6 with the Hammer in hand; exclusion list in the config.
By LilyEssence
| Date uploaded | 3 days ago |
| Version | 1.3.0 |
| Download link | LilyEssence-HammerCostCap-1.3.0.zip |
| Downloads | 20 |
| Dependency string | LilyEssence-HammerCostCap-1.3.0 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2351README
Hammer Cost Cap
Every piece in the Hammer costs at most 1 of each item it already needs. A stone wall that wanted 6 stone wants 1; a piece that needs 2 kinds of item still needs both, 1 each; free pieces stay free. Nothing is added or removed, so the look and feel of building is unchanged, just cheap.
Client-only. A vanilla dedicated server does not check build costs, so it works there without admin rights. Pieces other mods add to the Hammer (More Vanilla Build Prefabs, for example) are capped too, and the cap holds when such a mod rewrites costs mid-session.
Mode picks the cost: Capped (1 of each, the default), Free (no cost at
all; the cost panel is empty) or Full (the original). With the Hammer in
hand, F6 cycles Capped -> Free -> Full and says which one is on; the
action bar at the bottom shows the key. F6 does nothing with any other tool,
so it coexists with PlantEasily (Cultivator) and Better Simple Hoe (Hoe). Deconstructing with your
own Hammer refunds the cost in force: 1 of each in Capped, nothing in Free.
Anyone else taking a piece down, and any piece destroyed by damage, drops the
full original cost, so other players on the server see vanilla refunds. If a
piece was built cheap and taken down in Full (or with the mod off), the game
refunds the original full cost; the mod cannot see that.
Settings
BepInEx/config/lily.hammercostcap.cfg, or an in-game config manager. Changes
apply live.
| Setting | Default | What it does |
|---|---|---|
Mode |
Capped |
Capped = at most 1 of each item, Free = nothing, Full = original cost; switches live |
CycleKey |
F6 |
cycles Mode while the Hammer is equipped; modifier combos like LeftShift+F6 work |
Exclude |
empty | comma-separated prefab names that keep their original cost, e.g. portal_wood, piece_chest_wood |
DebugLog |
false |
log each piece the first time it is capped, and every restore |
Requires
BepInEx 5. No other mod.
CHANGELOG
Changelog
-
1.3.0 Other players always get the full refund. The mode now applies only to your own Hammer deconstruction; a piece another player takes down, or one destroyed by damage, drops its original cost even when your client performs the drop. Pieces that appeared while a cheap mode was on refund correctly too.
-
1.2.0
CycleKey(default F6) cycles the mode while the Hammer is equipped, with a centre-screen message and a "Cost mode" entry in the build action bar. The choice is saved to the config file. -
1.1.0
EnabledbecomesMode:Capped(1 of each, default),Free(no cost at all),Full(original). Switches live. -
1.0.0 First version: caps every Hammer piece at 1 of each item, live
Enabledtoggle,Excludelist, survives More Vanilla Build Prefabs rewriting costs.