You are viewing a potentially older version of this package. View all versions.
Dwarf_Haven_Games-Selective_Free_Build-1.2.0 icon

Selective Free Build

Free building that still charges for the pieces that matter. Crafting stations, producers, carts and boats keep their cost, and planting still spends seeds. Pick which build menu categories pay, by category or by piece.

Date uploaded a day ago
Version 1.2.0
Download link Dwarf_Haven_Games-Selective_Free_Build-1.2.0.zip
Downloads 53
Dependency string Dwarf_Haven_Games-Selective_Free_Build-1.2.0

This mod requires the following mods to function

ValheimModding-Jotunn-2.30.2 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.30.2

README

Selective Free Build

Free building, except for the pieces that should still cost something.

The No Build Cost world modifier is all or nothing. This mod gives the cost back to whichever build menu categories you choose and leaves the rest free. By default crafting stations, carts and boats pay; walls, floors, roofs, furniture and decor stay free.

Which pieces pay

PaidTags takes build menu categories, spelled as the menu labels them:

Misc, Crafting, Building, Flooring, Walls, Roofing, Architecture, Furniture, Lighting, Decor, Storage, Transportation, Food, Meads, Feasts, Defense, Stacks, Stairs, Doors, Seasonal

Categories added by other mods work too — name them as the build menu shows them.

A piece pays if any of its categories is on the list. AlwaysPay and NeverPay override that for individual pieces, by prefab name.

CultivatorAlwaysPays is on by default, so planting still spends seeds. It reads the cultivator's own menu, which covers seeds and plants added by other mods.

GrantFreeBuild supplies the free building itself if you would rather not use the world modifier. With neither, nothing is free and the mod has nothing to do.

Settings

Setting Default What it does
PaidTags Crafting, Transportation Categories that keep their material cost.
AlwaysPay (empty) Pieces that always cost, whatever their category.
NeverPay (empty) Pieces that are always free. Beats every other rule.
CultivatorAlwaysPays On Everything planted with the cultivator costs materials.
GrantFreeBuild Off Free building without the world modifier.
LogDecisions Off Logs each piece's price once, to show what decided it.

Changes take effect immediately, without a restart.

Notes

  • Removing a piece refunds what it cost. A free one refunds nothing.
  • Workbench and crafting station requirements are unchanged.
  • Crafting items at a station has its own world modifier and is not affected.

Multiplayer

Both server and client need this mod.

Recommended setup: turn on the No Build Cost world modifier on the server and leave GrantFreeBuild off. The modifier belongs to the world, so the game replicates free building to every client on its own and this mod is left deciding only what still costs.

CHANGELOG

Changelog

1.2.0

  • Fixed an error when logging out or closing the game. Your own settings, which come back when you leave a server, were being lost with it - so a solo world could keep a server's settings until the game was restarted.

1.1.0

  • Build categories added by other mods can now be charged for. Name one in PaidTags as the build menu shows it and its pieces cost materials, the same as a vanilla category. Previously only the twenty vanilla categories were understood and any other name was ignored.
  • Editing a setting in the configuration window no longer reacts to every keystroke.

1.0.0

First release.