Valheim
Install with App

Details

Latest version
1.0.0
Last Updated
First Uploaded
Downloads
201
Likes
0
Size
35KB
Dependants
ADDatHost Valheim hosting
30% off

Prime Chest Sizes

A small standalone BepInEx plugin that increases storage slots in Valheim's built-in chests. Configure each chest type separately. This changes inventory capacity, not the physical model.

Default sizes

Container Columns x rows Slots
Wooden chest 8 x 4 32
Personal chest 6 x 4 24
Reinforced chest 8 x 6 48
Black metal chest 8 x 8 64
Barrel 8 x 4 32
Grausten chest 8 x 10 80

Applies when existing or new chests load. Player inventory, tombstones, dungeon loot, carts and ships are untouched. Each supported type has Enabled, Columns and Rows options.

Install in Thunderstore Mod Manager / r2modman

  1. Close Valheim and back up your world before first use.
  2. Select your Valheim profile. Keep BepInExPack_Valheim enabled. Jotunn can remain installed; this plugin does not require it.
  3. Find Import local mod in Settings / Profile (or the profile menu in newer versions). Select Prime_Chest_Sizes-1.0.0.zip. If an author is requested, use your own Thunderstore team name.
  4. Start the game with Start modded.
  5. Confirm the BepInEx log contains Prime Chest Sizes 1.0.0 loaded and no errors from this plugin.

This is an installable mod package ZIP, not an exported profile. Use Import local mod, not Import profile. The archive includes the compiled plugin; no build step is needed to play. Local imports may not fetch dependencies, so BepInEx must already be installed.

Manual alternative: use the manager's Browse profile folder, then merge this ZIP's BepInEx folder into that profile. The resulting DLL is BepInEx/plugins/PrimeChestSizes/PrimeChestSizes.dll.

Adjust the size

Close the game (and stop a dedicated server) before editing. In the manager's Config editor, find prime.valheim.chestsizes.cfg; alternatively edit:

BepInEx/config/prime.valheim.chestsizes.cfg

Example for a 48-slot wooden chest:

[Wooden Chest]
Enabled = true
Columns = 8
Rows = 6

Save and restart. Columns accept 1-8, rows 1-20; the effective size never falls below that chest's vanilla dimensions. Valheim's existing container scroll area handles additional rows. Layout/controller behavior must still be checked on your game version and UI setup.

The supplied config is also created automatically on first launch if missing. Keep your edited config when updating this package.

Reducing sizes and removing the mod

The plugin preserves the row and column of every loaded item. If an occupied slot falls outside a smaller requested grid, the chest stays large enough to include it. Move items into the desired area, close the game and restart to finish reducing the grid.

Grid dimensions are recorded in the chest's ZDO when the chest saves. They are read before subsequent inventory loads so reducing the config does not start the load with a smaller grid. The plugin never deliberately deletes, moves or replaces an item, and never forces a save during Awake/Load.

These protections require this plugin to be active. Before uninstalling, move everything out of added rows AND columns into vanilla-sized storage and save your world. Backups remain important, particularly with other inventory mods.

Multiplayer

Install the same version on every player and the dedicated server, with the same config. This version does not synchronize or enforce configs or check remote mod versions. Mixed modded/unmodded use and mismatched configs are unsupported. Server-only installation does not enlarge a player's UI.

Do not run another mod's chest-resizing feature alongside this one. Existing chests expanded by a different mod have not been migration-tested.

Validation and compatibility

  • Compiled successfully as a .NET Standard 2.1 DLL, using BepInEx 5.4.21 and HarmonyX reference assemblies.
  • Twenty automated checks passed for sizing, prefab selection, saved-dimension restoration, non-owner writes and occupied-slot protection. These use test doubles, not a running game.
  • Not play-tested in Valheim or a dedicated server. Test first in a copied world: put an item in the bottom-right added slot, save, quit, reopen and check it. Repeat after reducing the requested size, then check multiplayer if applicable.
  • Uses runtime lookup of the Container/Inventory/ZDO API to avoid bundling game assemblies. Initialization verifies required members and removes its patches if those APIs are unavailable. Game updates may still require changes.

If a problem occurs, keep your backup and share BepInEx/LogOutput.log plus the Valheim version. Avoid further chest changes after a plugin error.

Upload to Thunderstore

Upload this ZIP unchanged through Thunderstore's Valheim package upload page under your team. manifest.json, README.md and a 256 x 256 icon.png are already at the ZIP root. Suggested categories: Mods, Utility, Client-side, Server-side, AI Generated. The source and packaging were created with AI assistance. No public upload has been performed for you.

Source and licence

Source.zip contains the original source, build instructions and checks. MIT licence. BepInEx, Harmony and Valheim binaries are not redistributed in this package.

Reference documentation:

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.