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.
ValheimHouseholds
Faction management, diplomacy, household grounds building rules, household chests, and world freeze controls for ValheimHouseholds.
By catosaurluna
| Last updated | a day ago |
| Total downloads | 316 |
| Total rating | 1 |
| Categories | Mods Utility Deep North Update |
| Dependency string | catosaurluna-ValheimHouseholds-1.0.18 |
| Dependants | 1 other package depends on this package |
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.2333ValheimModding-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.2README
ValheimHouseholds
ValheimHouseholds adds three competing households (factions) to a Valheim server. Players join a household, build inside their household's grounds, deposit items into shared Household Chests, travel to their household through sorting portals, and wear household armor. Admins assign players, set grounds, and freeze the world with console commands.
Version: 1.0.17
Plugin GUID: com.householdheim.valheimhouseholds
Game: Valheim (BepInEx, Jotunn)
Contents
- Requirements
- Installation
- Factions
- Faction names
- Building rules
- Household grounds
- Doors and chests in foreign grounds
- Admin bypass
- Household Chest
- Household Sorting Portal
- Household armor
- Market wagon
- World freeze
- Boss powers
- Discord notifications
- Admin commands
- Configuration
- Saved data
- Known limits
- Compatibility
- Troubleshooting
- Recent changes
Requirements
| Dependency | Version |
|---|---|
| BepInExPack Valheim | 5.4.2333 |
| Jotunn | 2.30.2 |
The package manifest lists both as dependencies.
Installation
- Install the package with Thunderstore, r2modman, or Gale.
- Install the same version on the dedicated server and on every player's client.
- Start the server once. The mod creates its config file and data files on first run.
- Edit
com.householdheim.valheimhouseholds.cfgin the server'sBepInEx/configfolder to set faction names and other options (see Configuration).
Clients need the mod for faction particles, grounds visuals, the door and chest rule, and sorting portal routing. A client without the mod cannot use those features.
Factions
The mod has three households. Each has a fixed faction ID. A player with ID 0 is unassigned and has no household.
| ID | Default display name | Particle color |
|---|---|---|
| 1 | Ironforge (Red Team) | Red |
| 2 | Frosthelm (White Team) | White |
| 3 | Stormwind (Blue Team) | Blue |
Admins assign players with vh_assignfaction. Assignments are stored by character name, and matching ignores case. A player who renames their character loses the assignment until an admin assigns the new name.
Unassigned players cannot place pieces or use a sorting portal. They are also treated as foreign on every household's grounds, so they cannot open doors or chests there.
Faction names
The three display names come from the [Factions] section of the config. The server sends its names to every player when they connect, so all players see the same names as the server.
The names appear in:
- Placement and door messages ("These grounds belong to ...").
- Chest deposit banners and completion banners.
- Sorting portal tags. A vanilla portal's tag must match the faction name exactly (see Household Sorting Portal).
Change a name in the server config and restart the server. The new name takes effect for players as they reconnect.
Building rules
When a player tries to place a piece, the mod checks these rules in order:
- Unassigned players cannot place pieces, unless the admin bypass applies.
- Vanilla portals (
portal_wood) are blocked for players. Use the Household Sorting Portal instead. - Foreign grounds: a piece inside another household's grounds is blocked.
- Inside your own household's grounds: normal building is allowed, with no wilderness restrictions.
- Outside your grounds: if
AllowBuildingInWildsistrue, only this travel and utility list is allowed:raft,karve,vikingship,vikingship_ashlands,fire_pit,bed,piece_bed02,piece_workbench. Every other piece is blocked with the message "Permanent industry is restricted to Faction Hubs." IfAllowBuildingInWildsisfalse, nothing can be built outside your own grounds.
Household grounds
Grounds are a circle that belongs to one household. The circle is 100 meters across (50 meters radius).
Admins set grounds by standing at the center and running:
vh_setgrounds red
vh_setgrounds white
vh_setgrounds blue
The numbers 1, 2, and 3 also work in place of the color names. To remove a household's grounds:
vh_cleargrounds red
Inside your own household's grounds, you can build without the wilderness restrictions. Inside another household's grounds, you cannot build, and you cannot open its doors or chests (see the next section).
Doors and chests in foreign grounds
A player cannot open a door or a container (chest, including Household Chests) that sits inside another household's grounds. Unassigned players are treated the same way wherever grounds exist. The player sees "These grounds belong to <household>."
Doors and chests inside your own household's grounds work as normal. Chests outside any grounds also work as normal.
Household Chests have no owner of their own. Whether a chest is "another household's" depends on where it stands.
Admin bypass
The AdminBypassEnabled setting (default false) lets server admins bypass the building rules, the foreign grounds rule, and the door and chest rule.
An admin must be on the server's admin list (adminlist.txt) to receive the bypass. The server decides whether each player gets it and tells their client when they connect. Single-player and hosted games apply the bypass locally.
Household Chest
Build the Household Chest from the Hammer, in the Households category. It requires the SwordCheat item, which is meant for admins.
A Household Chest counts items for the households. It does nothing until you list item prefab names in DetectedItems. Leave that list empty and the chest is inert.
How deposits work
- A player deposits by moving an item into the open Household Chest.
- The server checks the player, the chest, the item, and the player's household before it records the deposit.
- Unassigned players are ignored by default (
IgnoreNonFactionPlayers). - With
ConsumeOnDepositset totrue(the default), the chest removes the item once the server confirms the deposit. Set it tofalsefor a display chest that keeps its items. - Each deposit can show a center-screen banner and a Discord message.
Matching
| Setting | Behavior |
|---|---|
MatchMode = Exact (default) |
The item's prefab name must match exactly. Matching is case-sensitive. |
MatchMode = Contains |
The item's prefab name must contain the listed keyword. |
Completion and freeze
FreezeMode |
When a household completes the set |
|---|---|
Off (default) |
Never. Deposits still count and still show banners. |
Any |
The first time a household deposits any one listed item. |
All |
When a household has deposited at least one of every listed item. |
On completion the mod can show a completion banner, post to Discord, and freeze the world. FreezeOnlyOnce (default true) stops a household from triggering a second freeze until its deposit totals are reset.
Chest commands
| Command | Who | Effect |
|---|---|---|
vh_chest_status |
Any connected player | Shows deposit totals for all three households. |
vh_chest_reset |
Admin | Resets all deposit totals. |
vh_chest_reset <1|2|3> |
Admin | Resets one household's totals. |
vh_chest_test <faction#> <itemName> |
Admin | Simulates one deposit, then checks completion. |
Household Sorting Portal
Build the Household Portal from the Hammer, in the Households category. It requires the SwordCheat item.
A Household Portal does not pair with vanilla portals. Standing next to it routes you to a destination instead.
Setup
- Place a vanilla portal (
portal_wood) at each household's base. Admins place these, because vanilla portals are blocked for players. - Name each destination portal with the exact faction display name, for example
Stormwind (Blue Team). Matching ignores case, but the words and punctuation must match. - Place a Household Portal wherever players should travel from.
Using it
Stand within 2.5 meters of the portal for 2 seconds. You are sent to the first destination whose tag matches your household's name. Destination portals must be vanilla portals, not Household Portals.
| Situation | Message |
|---|---|
| You are unassigned | "You are unassigned, no destination portal." |
| No portal matches your household's name | "No portal found tagged ..." with a request to ask an admin. |
If two destinations share the same tag, the mod uses whichever one it finds first.
If the game will not accept a faction name as a portal tag because the name is too long, shorten the name in the [Factions] section of the config, restart the server, and use the new name on the portal.
Household armor
Each household has its own armor set, registered under faction-prefixed IDs:
- Ironforge (red): helmet, King helmet, chest, legs, and cape.
- Stormwind (blue): helmet, chest, legs, and cape.
- Frosthelm (white): helmet, chest, legs, and cape.
The bundle armor is crafted at a forge (station level 2) and can be repaired there. Two extra families are recolored from vanilla gear, Troll Hide and Bronze, in each household's color. By default each recolored piece adds +2 armor over its vanilla base.
Armor ratings, weight, durability, movement penalties, and heat resistance are set in HouseholdHeim.FactionEquipment.cfg. These values are admin-only and sync from the server to clients. Changes need a restart unless made through a synchronized in-game config editor.
Equipping household armor is not limited to members of that household. A household controls building, grounds, chests, portals, and visuals, not who may wear the armor.
Admins can spawn the pieces with these commands:
Ironforge (red):
spawn IronforgeHelmet 1 spawn IronforgeKingHelmet 1
spawn IronforgeChest 1 spawn IronforgeLegs 1
spawn IronforgeCape 1
spawn IronforgeTrollHood 1 spawn IronforgeTrollChest 1
spawn IronforgeTrollLegs 1 spawn IronforgeTrollCape 1
spawn IronforgeBronzeHelmet 1 spawn IronforgeBronzeChest 1
spawn IronforgeBronzeLegs 1
Stormwind (blue):
spawn StormwindHelmet 1 spawn StormwindChest 1
spawn StormwindLegs 1 spawn StormwindCape 1
spawn StormwindTrollHood 1 spawn StormwindTrollChest 1
spawn StormwindTrollLegs 1 spawn StormwindTrollCape 1
spawn StormwindBronzeHelmet 1 spawn StormwindBronzeChest 1
spawn StormwindBronzeLegs 1
Frosthelm (white):
spawn FrosthelmHelmet 1 spawn FrosthelmChest 1
spawn FrosthelmLegs 1 spawn FrosthelmCape 1
spawn FrosthelmTrollHood 1 spawn FrosthelmTrollChest 1
spawn FrosthelmTrollLegs 1 spawn FrosthelmTrollCape 1
spawn FrosthelmBronzeHelmet 1 spawn FrosthelmBronzeChest 1
spawn FrosthelmBronzeLegs 1
Market wagon
The mod adds two decorative market wagons, open and closed, in the Households category. They require the SwordCheat item.
World freeze
Admins can freeze the whole world. While frozen:
- Players cannot move, attack, block, jump, or dodge.
- Creature AI and ship movement pause.
- Players take no damage.
- After an unfreeze, players get five seconds of damage immunity.
Admins are not frozen by default (FreezeAdmins = false), so they can keep moving while the world is frozen. The freeze state persists across server restarts. A banner shows the frozen state to every player, and the text and color are configurable.
| Command | Who | Effect |
|---|---|---|
vh_freeze [reason] |
Admin | Freezes the world. The optional reason appears on the banner and in Discord. |
vh_unfreeze |
Admin | Unfreezes the world. |
vh_freezestatus |
Any player | Shows whether the world is frozen and for how long. |
Household Chests can also freeze the world when a completion threshold is reached.
Boss powers
BlockBossPowers (default true) blocks guardian powers for every player, admins included. Powers cannot be set, activated, or shown on the HUD, and item stands cannot activate them. Set it to false to allow boss powers.
Discord notifications
Set [Discord] WebhookUrl to a Discord webhook to receive:
- Household Chest deposits (
[Chest] WebhookOnDeposit). - Household Chest completions.
- World freeze and unfreeze events (
PostFreezeToggle).
ServerLabel is an optional name that appears in each message. An empty webhook URL turns all posting off.
Admin commands
Admin commands are for server admins. Admin status comes from the server's admin list.
| Command | Effect |
|---|---|
vh_assignfaction <PlayerName> <1|2|3> |
Assigns or replaces a player's household. |
vh_removefaction <PlayerName> |
Removes a player's household. |
vh_listfactions |
Lists all assignments, grouped by household. |
vh_setgrounds <red|white|blue> |
Sets that household's grounds, centered on your position. |
vh_cleargrounds <red|white|blue> |
Removes that household's grounds. |
vh_freeze [reason] |
Freezes the world. |
vh_unfreeze |
Unfreezes the world. |
vh_freezestatus |
Shows the freeze state. Any player can use this. |
vh_chest_status |
Shows chest totals. Any player can use this. |
vh_chest_reset [1|2|3] |
Resets chest totals, for all households or one. |
vh_chest_test <faction#> <itemName> |
Simulates a chest deposit. |
Configuration
The main config file is com.householdheim.valheimhouseholds.cfg in BepInEx/config. The most useful settings:
| Section | Key | Default | Effect |
|---|---|---|---|
General |
AdminBypassEnabled |
false |
Lets admins bypass building, grounds, and chest and door rules. |
General |
AllowBuildingInWilds |
true |
Allows the travel and utility list outside your household's grounds. |
Factions |
Faction1Name |
Ironforge (Red Team) |
Display name and portal tag for household 1. |
Factions |
Faction2Name |
Frosthelm (White Team) |
Display name and portal tag for household 2. |
Factions |
Faction3Name |
Stormwind (Blue Team) |
Display name and portal tag for household 3. |
Freeze |
FreezeAdmins |
false |
Also freezes admins when the world is frozen. |
Freeze |
FreezeBannerText |
WORLD FROZEN |
Text on the freeze banner. |
Freeze |
FreezeBannerColor |
#FF3333 |
Color of the freeze banner. |
Discord |
WebhookUrl |
empty | Discord webhook. Empty turns posting off. |
Discord |
ServerLabel |
empty | Optional server name in Discord messages. |
Discord |
PostFreezeToggle |
true |
Posts freeze and unfreeze events. |
Chest |
DetectedItems |
empty | Comma-separated item prefab names. Empty turns the chest system off. |
Chest |
MatchMode |
Exact |
Exact or Contains. |
Chest |
IgnoreNonFactionPlayers |
true |
Ignores deposits from unassigned players. |
Chest |
FreezeMode |
Off |
Off, Any, or All. |
Chest |
FreezeOnlyOnce |
true |
One freeze per household until reset. |
Chest |
ConsumeOnDeposit |
true |
Removes deposited items once the server confirms them. |
Chest |
BroadcastCompletionDuration |
10 |
Seconds a banner stays on screen. |
Bosses |
BlockBossPowers |
true |
Blocks guardian powers for everyone. |
Each setting has a description in the config file.
Saved data
The server writes these files:
| File | Contents |
|---|---|
ValheimHouseholds.json |
Player-to-household assignments. |
HouseholdChestDeposits.json |
Deposit totals, first-deposit times, and completion times for each household. |
FreezeState.json |
Whether the world is frozen, when the freeze started, and why. |
HouseholdHeim.FactionEquipment.cfg |
Armor stats, synced from the server. |
Back up these files along with the world saves.
Known limits
- Door and chest rule runs on the client. The server sends the household grounds to each client, and the client blocks the interaction. A modified client can still open a door or chest in foreign grounds. Server-side enforcement is not part of this version.
- Keys are not covered. The rule blocks opening doors and chests. It does not block using a key on a door.
- Household Chests are judged by location. They have no owner, so "another household's chest" means one inside that household's grounds.
- Assignments follow character names. A renamed character loses its household until an admin reassigns it.
- Deposits count households 1 to 3 only. Unassigned deposits are rejected or shown as unknown, and they do not add to any total.
- Portal destinations are first match. If two vanilla portals share a household's tag, the mod uses whichever it finds first.
Compatibility
- Run one anti-cheat mod, not two. This mod does not include one.
Troubleshooting
Players show different household names. Every player and the server must run version 1.0.16 or later. Reconnect after the server restarts.
"No portal found tagged ..." The tag on the destination portal does not match the name in the message. Copy the name from the message and set the portal's tag to exactly that text. Check the server's config for the current name.
A door or chest will not open. Check that you are assigned to the household whose grounds you are standing in. Check that the chest is not inside another household's grounds. Admins with the bypass enabled can always open them.
Building is blocked outside your grounds. Outside your household's grounds, only the travel and utility list is allowed when AllowBuildingInWilds is true. Build inside your household's grounds.
Armor stats did not change. Armor stats sync from the server when players connect. Restart the server after editing HouseholdHeim.FactionEquipment.cfg.
Recent changes
1.0.17
- Household Chest deposits count when an item is dragged into the chest with the mouse, as well as with a ctrl-click.
1.0.16
- Faction names are sent by the server, so every player uses the server's names.
- Doors and chests inside another household's grounds cannot be opened by players outside that household.
1.0.15
- Household grounds per faction, set with
vh_setgroundsandvh_cleargrounds.