You are viewing a potentially older version of this package. View all versions.
Wubarrk-StackIT-0.3.2 icon

StackIT

Server-synced stack, weight and pickup control for Valheim. Tune stacks per resource (wood 3x, metal 2x), cut item weights by a percentage, raise carry capacity, and hold Shift to harvest a whole berry patch

Date uploaded 2 weeks ago
Version 0.3.2
Download link Wubarrk-StackIT-0.3.2.zip
Downloads 264
Dependency string Wubarrk-StackIT-0.3.2

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2360 icon
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.2360

README

📦 StackIT

STACKIT VERSION SERVER AND CLIENT

Forty trips to the cart. Forty times bent over the same berry patch. The gods gave the Viking two strong arms and a back like a longship's keel, and then, for reasons of their own, a pocket that holds fifty logs. StackIT has words with the gods.

Carry more of it, carry it further, and take the whole patch at once.

StackIT decides two numbers for every item in the game: how many fit in a slot, and what one of them weighs. Set one multiplier for each and forget them — or tune them per category, per resource and per item, with exclusions and a hard ceiling.

It also stops you pressing E forty times in a berry patch: hold Shift and the whole patch comes up at once. The server owns every number and players sync to it, so nobody compares config files. And it never makes weapons, armour or tools stackable — on purpose.


NEW IN 0.3.0

Wood and metal stop sharing one number. The game files both under Materials, but wood is bulk you burn through building and metal is a chain of ore, scrap and smelting. Now each gets its own multiplier.

Resource Covers Vanilla stack
🪵 Wood Wood, Finewood, Corewood, Yggdrasil Wood, Ancient Bark, Ashwood, Timberwood 50
🪨 Stone Stone, Grausten, Black Marble 50
⛓️ Metal every ore and scrap the smelter and blast furnace take, and every bar they give back — copper, tin, bronze, iron, silver, black metal, flametal and bloodgold 30
🦌 Leather hides, pelts, leather scraps and leather straps 50 (Troll Hide 20)

🔹 Stack Multiplier Overrides — a multiplier for one item, modded items included · 🔹 Weight Reduction Bonus (%) — one dial that takes a percentage off every weight in the game · 🔹 Verbose Logging now says exactly what it applied


BEFORE YOU INSTALL

If… Then…
🪶 you add it to an existing world stacks are 3× and items weigh half from the first launch. That is deliberate — bigger stacks are only worth having if you can carry them. Set Weight Multiplier = 1.0 for vanilla weights.
🏃 you sprint with Shift Shift is also the Harvest All key: press Use on a bush while still running and you take the whole patch. Change Harvest All Modifier, or set Harvest All = false.
🤝 you play on a server install it on the server and every player. The server asks for its own StackIT version, so a player on an older one is asked to update rather than play with different numbers.
🔄 you update an older StackIT your settings carry over, and the per-resource, per-item and weight-bonus settings ship switched off. Nothing moves until you set them.
🛡️ you want stackable swords StackIT will never stack weapons, armour or tools. Chapter I says why.

I

One multiplier for everything that stacks — then as fine as you like.

📦 Stack Multiplier 3× by default: 50 wood becomes 150, 20 trophies become 60
🧱 Max Stack Size a ceiling (default 9999) applied last, so a big multiplier never makes a silly number
🗂️ Per category Materials, Consumables, Ammo, Trophies, Fish and Misc each take their own multiplier
🪵 Per resource Wood, Stone, Metal and Leather split out of Materials
🎯 Per item an absolute size, a multiplier, or held at vanilla
🔁 Always from vanilla sizes are recomputed from the vanilla value, so turning the multiplier down really brings stacks down
📖 Read the saga — which setting wins, and why gear never stacks

The most specific setting wins. For any item, StackIT takes the first of these that applies:

  1. Excluded Items — held at the vanilla stack size.
  2. Stack Size Overrides — an absolute size.
  3. Stack Multiplier Overrides — that one item's own multiplier.
  4. Per resource — the item's resource group, if it is set.
  5. Per category — the item's category, if it is set.
  6. Stack Multiplier — the global default.

Max Stack Size clamps whatever comes out. A category or resource left at 0 follows the next one down the list, so nothing changes until you set it. Push a new config from the server ten times and you get the same answer ten times.

Why gear never stacks. Valheim decides whether two items can merge by comparing name, quality and world level — never durability. If gear could stack, a sword at full durability dropped onto a pile of worn ones would simply become a worn one: the game keeps one durability value for the whole stack, and the better item's is thrown away without a word. There is no setting for it, because there is no version of it that is not silent data loss. The same goes for anything that does not stack in vanilla; point an override at one and StackIT ignores it and says so once in the log. Weight reduction still applies to gear in full.


II

Bigger stacks are only worth having if you can carry them.

🪶 Weight Multiplier 0.5 by default — everything weighs half of vanilla
➖ Weight Reduction Bonus (%) a further percentage off every item, on top of the multipliers
🗂️ Per category all nine categories, weapons, armour and tools included, take their own weight multiplier
🎯 Per item an exact weight, or held at vanilla
🧮 Minimum Item Weight a floor (default 0.01) so nothing rounds down to free by accident
🎒 Extra Carry Weight a flat allowance on top of vanilla's 300 and Megingjord
📖 Read the saga — how the weight dials stack up

Weightless stays weightless. Items that weigh nothing in vanilla are meant to be free, and stay that way. Everything else is held above the minimum-weight floor.

The bonus is never replaced. A category with its own multiplier replaces the global one, but the Weight Reduction Bonus still applies on top, so it is the one dial that moves every weight in the game at once. Set it to 25 and everything is 25% lighter than the multipliers alone make it: at the default multiplier of 0.5, a log that weighs 2 in vanilla ends up at 0.75. Weight Overrides and Excluded Items name an exact weight and are exempt; the floor still holds, so 100 leaves everything at the floor rather than at nothing.

Carry weight agrees with itself. Extra Carry Weight hooks the same call the encumbrance check and the inventory readout use, so the number in the corner of your inventory and the point where you start to waddle always match. It ships at 0 — the stack and weight multipliers usually get you there on their own.


III

Hold Shift, press Use, and the whole patch comes up.

You It
Shift + E on a raspberry bush picks every bush nearby, not just one
Shift + E on mushrooms, thistle, dandelion, flint, branches, stone the same — anything the game calls a pickable
E on its own exactly what it always did
Look at a plant [Shift + E] Harvest all sits under vanilla's [E] Pick up, follows your key, and hides on a gamepad
📖 Read the saga — pickup range and the two guards

Harvests drop on the ground. Picking a plant puts its items where the plant stood — fine for one bush, useless for forty. Auto Pickup Range is the radius loose items are pulled in from: 2 in vanilla, up to 64 here. Raise it and a harvest collects itself. Vanilla's rules still hold: nothing is pulled in while you are out of slots or over your carry limit.

Max Count (default 50) caps one harvest and takes the nearest plants first. If a harvest hits the cap you are told so in the corner — it never quietly stops and lets you believe the patch is empty.

Same Type Only (default off) takes only plants that drop the item you actually picked, for when you want the berries out of a clearing and the mushrooms left alone.

Plants sitting in tar are skipped quietly, and Excluded Items keeps named plants out of every harvest.


THE TOOLBOX

First ten minutes: install it on the server and every player → launch once to make BepInEx/config/wubarrk.stackit.cfg → set your multipliers → walk up to a berry patch → Shift + E.

Key
Shift + E Harvest All — the key is Harvest All Modifier, and yours alone
🛠️ Triple wood, double metal
[3 - Stack Resources]
Wood  = 3
Metal = 2

Wood stacks go 50 → 150 and metal 30 → 60, each independent of the other and of the Materials category. The exact prefab names in each group are listed in the config file's comments, ready to copy into an exclusion or override list.

🎯 Set single items

Three comma-separated lists. The first two set absolute values that ignore every multiplier; the third scales the vanilla stack:

Stack Size Overrides       = Wood:500, Stone:500, Coins:9999
Weight Overrides           = Wood:0.1, Iron:4, BlackMetal:3
Stack Multiplier Overrides = Coal:4, Flint:2

The multiplier list is separate so that Coal:4 can only ever mean "four times the vanilla stack", never "four per stack". It is also where modded items go, since they belong to no built-in group. Entries of zero or less, and NaN or infinity, are ignored with a warning.

🚫 Keep items at vanilla
[2 - Settings]  Excluded Items = Coins, SurtlingCore
[4 - Weight]    Excluded Items = Ymirremains
[7 - Pickup]    Excluded Items = Dandelion

Every list takes either the prefab name (Wood) or the shared name token ($item_wood), because item dumps and tooltips disagree on which one you are looking at. All are case-insensitive and read the same on every machine, whatever its decimal separator. Verbose Logging prints what was applied, so you can see the mod read your config the way you meant it.


MULTIPLAYER

Works on its own Decided by the server Yours alone
single player and dedicated servers, no extra setup every stack, weight, carry and pickup setting — pushed on connect and again whenever an admin changes one, no restart Harvest All Modifier

⚠️ Versions must match. The server asks for its own StackIT version; a player on an older one is asked to update. Lock Configuration (on by default) stops players editing their own copy for bigger stacks. StackIT touches item prefabs only — it never writes to your save.


SETTINGS

Configuration Manager (F1) in game, or BepInEx/config/wubarrk.stackit.cfg.

🔒 Server-synced — set on the server
Section Setting
1 - General Lock Configuration only admins change the settings
1 - General Verbose Logging log what was applied on each re-apply
2 - Settings Stack Multiplier the global stack multiplier (3.0)
2 - Settings Max Stack Size the ceiling (9999)
2 - Settings Excluded Items · Stack Size Overrides · Stack Multiplier Overrides the per-item stack lists
3 - Stack Categories Materials · Consumables · Ammo · Trophies · Fish · Misc 0 follows the global multiplier
3 - Stack Resources Wood · Stone · Metal · Leather 0 follows the category, then the global multiplier
4 - Weight Weight Multiplier the global weight multiplier (0.5)
4 - Weight Weight Reduction Bonus (%) a percentage off every weight (0)
4 - Weight Minimum Item Weight the floor (0.01)
4 - Weight Excluded Items · Weight Overrides the per-item weight lists
5 - Weight Categories Materials · Consumables · Ammo · Trophies · Fish · Misc · Weapons · Armor · Tools 0 follows the global multiplier
6 - Carry Weight Extra Carry Weight added to every player's carry limit (0)
7 - Pickup Auto Pickup Range pickup radius in metres (2, vanilla)
7 - Pickup Harvest All · Harvest All Radius · Harvest All Max Count · Harvest All Same Type Only on, 8 m, 50 plants, off
7 - Pickup Excluded Items plants never mass-harvested
🖥️ Local to your game — yours alone
Section Settings
7 - Pickup Harvest All Modifier (LeftShift) — a keybind is a matter of taste and keyboard, not balance

CREDITS

Needs: BepInExPack Valheim 5.4.2360 (the mod loader; it also provides HarmonyX). Install with a mod manager, or unzip into BepInEx/plugins — on a dedicated server too, since the server's copy decides.

  • ServerSync.cs by Blaxxun is compiled into the DLL for server-synced settings. It is not covered by StackIT's MIT grant and stays under its author's own terms.

🔗 Also by me: TortalPortal · VikingOS · Fatty · LetItGrow · Shadows of Midgard · AwayFromHome · Njord · Wings of the Valkyrie · Dvergr Allies · Blighted World Heart · Runebound Rest · Mists of Avalor · The Eye

Made by Wubarrk — ravenirongames.com. Bug reports and suggestions genuinely wanted on Discord. License: MIT — fork it, ship it, sell it, put it in your modpack; keep the copyright notice. Full text in LICENSE.md.

CHANGELOG

Changelog

[0.3.2]

Store page only: the README is rewritten to the new layout and is now the same on every store, and the website link now goes to https://ravenirongames.com/. No change to the mod: StackIT.dll is the same file as in 0.3.1.

[0.3.1]

Rebuilt and checked against Valheim 1.0.21 (network version 41) and BepInExPack 5.4.2360. Nothing about stacks, weights or pickup changes.

  • Stack and weight changes still land on the item prefabs exactly as before. Valheim 1.0.21 changed how items are validated when they are added to an inventory (Inventory.AddItem by prefab hash now calls ItemDrop.EnsureValid, and the cheat flag is set from damage alone) and revised the character save format; StackIT touches only m_maxStackSize and m_weight, so none of that reaches it.
  • The server still asks clients for its own StackIT version, so 0.3.0 clients are asked to update to 0.3.1.
  • Website link moved to https://www.rossgilsonlabs.dev.

[0.3.0]

Added

  • Stack sizes can be tuned per resource. Wood and metal are both "Materials" to the game, so until now they shared one multiplier, or had to be overridden one item at a time in absolute numbers - which meant working out each item's vanilla stack first (wood is 50, every ore and bar is 30). The new 3 - Stack Resources section splits Materials into four groups with a multiplier each: Wood (Wood, Finewood, Corewood, Yggdrasil Wood, Ancient Bark, Ashwood, Timberwood), Stone (Stone, Grausten, Black Marble), Metal (every ore and scrap the smelter and blast furnace take, and every bar they give back) and Leather (hides, pelts, scraps and straps). Wood = 3 and Metal = 2 gives triple wood stacks and double metal ones, independently of each other and of the Materials category. Each group ships at 0, meaning follow the category, then the global multiplier, so nothing moves until you set one.
  • Stack Multiplier Overrides. A per-item list of multipliers - Wood:3, IronOre:2 - for anything the four groups do not cover, modded items included. It sits beside Stack Size Overrides rather than extending its syntax on purpose: that list holds absolute sizes, and a Wood:3 that meant "three per stack" in one list and "three times" in another would be a trap. Like the other lists it takes a prefab name or a $item_ token and ignores case. Entries of zero or less are rejected with a warning.
  • Weight Reduction Bonus (%). A percentage taken off every item's weight on top of the Weight Multiplier: at the default multiplier of 0.5, a bonus of 20 makes items 20% lighter again, so a weight-2 log ends up at 0.8. It applies to the categories too - a category's own multiplier replaces the global one, but the bonus still stacks on top - which makes it the one dial that moves every weight in the game at once. Ships at 0, which is exactly the old behaviour. Weight Overrides and Excluded Items are exempt, since they name an exact weight, and the Minimum Item Weight floor still applies, so 100 leaves everything at the floor rather than at nothing.
  • Verbose Logging says what it applied. The summary line now includes the weight bonus, any resource multipliers that are set, and how many per-item multipliers are loaded, so you can see the mod read your config the way you meant it.

Changed

  • A stack size is now decided in this order, first match wins: Excluded Items (vanilla) → Stack Size Overrides (absolute) → Stack Multiplier Overrides (per item) → resource group → category → global Stack Multiplier. Max Stack Size still clamps the result last, and gear and anything that does not stack in vanilla are still never touched.
  • Override lists turn away NaN and infinity. They used to parse cleanly and flow through the clamp untouched: Iron:NaN in Weight Overrides left iron weighing NaN, and Coal:NaN in Stack Size Overrides left coal with a stack size of -2147483648. They are now ignored with the same warning as any other malformed entry.
  • MinimumRequiredVersion moved to 0.3.0. The new settings are server-synced and change the numbers the server computes, so clients on an older StackIT are asked to update.

[0.2.3]

Valheim 1.0.16 compatibility

  • Rebuilt for Valheim 1.0.16 (client build 25527674 / dedicated server build 25527701, network version 40). No source change was needed: every Harmony target (ObjectDB.Awake / CopyOtherDB, ZNetScene.Awake, Player.GetMaxCarryWeight / AutoPickup, Pickable.GetHoverText / Interact) and every game member the item, pickup and category code reads was checked against the 1.0.16 decompile and is unchanged.
  • No behaviour change. MinimumRequiredVersion follows the mod version to 0.2.3, as it always has - everyone updates together.

[0.2.2]

Valheim 1.0.7 compatibility

  • Rebuilt for Valheim 1.0.7 (client build 25185596 / dedicated server build 25185644, network version 39) on BepInEx 5.4.2350. No source change was needed: every Harmony target (ObjectDB.Awake / CopyOtherDB, ZNetScene.Awake, Player.GetMaxCarryWeight / AutoPickup, Pickable.GetHoverText / Interact) and every game member the item, pickup and category code reads was checked against the 1.0.7 decompile and is unchanged. The 1.0 trinket slot (ItemType.Trinket) was already mapped to the Armor category.
  • No behaviour change. MinimumRequiredVersion follows the mod version to 0.2.2, as it always has - everyone updates together.
  • The Thunderstore dependency now names the 1.0 BepInEx pack (denikson-BepInExPack_Valheim-5.4.2350).

[0.2.1]

Added

  • Harvest All is visible on the crosshair. A plant's hover prompt now carries a second line - [Shift + E] Harvest all - underneath vanilla's own [E] Pick up, in the same idiom the game uses for its other modifier prompts. It follows whatever key you bind rather than naming Shift, and it hides itself on a gamepad, where a keyboard modifier means nothing. Until now the feature was invisible unless you had read the config, which is a poor way to ship a keybind.

Changed

  • MinimumRequiredVersion moved to 0.2.1. Nothing about the config changed in this release, so a 0.2.0 client would in fact have synced correctly - but the pin follows the mod version, and loosening it is a decision for a release that needs it.

[0.2.0]

Added

  • Harvest All. Hold Shift and press Use on any plant and you pick every other plant within 8 m instead of just that one - a raspberry patch, a mushroom cluster or a thistle stand comes up in a single press. The plant under the cursor is still picked by the game itself; StackIT only adds the rest of the patch. Off-limits by default to nothing, but there is a Max Count (50) so a hold on a dense field cannot strip a whole biome, and you are told when a harvest hits it.
  • Auto Pickup Range. The radius loose items are vacuumed in from, defaulting to vanilla's 2 m and raisable to 64. It is the other half of Harvest All: picking a patch scatters the drops across the ground where the plants were, and a wider vacuum is what turns that back into one keypress. Vanilla's own rules still apply - nothing is pulled in while you are encumbered or out of slots.
  • Harvest All Modifier, Harvest All Radius, Harvest All Same Type Only and a Harvest All Excluded Items list, in the new 7 - Pickup section. Same-type-only restricts a harvest to plants dropping the item you actually picked; the exclusion list accepts either the dropped item's prefab name (Dandelion) or the plant's, and is case-insensitive like the other three lists.

Changed

  • The modifier key is the one setting the server does not decide. Everything else in StackIT is server-authoritative; which key you hold is a matter of taste and of keyboard, so it stays local.
  • Plants sitting in tar are skipped by a harvest rather than each printing $hud_itemstucktar, and a harvest takes the nearest plants first, so hitting the cap takes the patch around your feet rather than an arbitrary slice of the sphere.
  • MinimumRequiredVersion moved to 0.2.0. Clients on 0.1.1 will be asked to update, because the new pickup settings are server-synced and they would not receive them.

[0.1.1]

Added

  • Weight reduction. Every item's weight is now multiplied by a configurable factor, defaulting to 0.5 - half of vanilla. Bigger stacks only help if you can carry them, so weight is now the other half of the mod rather than something the stack multiplier quietly makes worse. Items that weigh nothing in vanilla stay weightless, and a Minimum Item Weight floor stops anything rounding down to free.
  • Extra Carry Weight. A flat allowance added to every player's carry limit, on top of vanilla's 300 and anything Megingjord contributes. Defaults to 0. It patches Player.GetMaxCarryWeight, so the encumbrance check and the inventory readout both agree with it.
  • Per-category multipliers. Stacks and weights can each be tuned per category instead of one number for the whole game - Materials, Consumables, Ammo, Trophies, Fish and Misc for stacks, plus Weapons, Armor and Tools for weight. Leave a category at 0 and it follows the global multiplier.
  • Per-item overrides. Wood:500, Stone:500 sets absolute stack sizes that ignore the multiplier entirely; Wood:0.1, Iron:4 does the same for weights. Both accept the prefab name (Wood) or the shared name token ($item_wood), and both are case-insensitive.
  • Exclusion lists. Comma-separated prefab names held at their vanilla stack size or vanilla weight - for the coins, cores and quest items you would rather the multiplier never touched.
  • Max Stack Size. A hard ceiling applied after the multiplier and after any override, so a large multiplier on an already-large stack cannot produce an absurd number.
  • Verbose Logging toggle, which reports how many prefabs were touched on each re-apply. Useful while tuning overrides.

Changed

  • Gear is explicitly never stacked. Weapons, armour and tools are skipped by name, and so is anything that does not stack in vanilla. Valheim merges stacks by item name and quality only - it does not compare durability - so a pristine sword dropped onto a worn stack would silently take the worn item's durability. Weight reduction still applies to gear; only stacking is withheld. An override aimed at an unstackable item is ignored and logged once.
  • Mod-added items are picked up more reliably. The sweep now covers ZNetScene.m_prefabs as well as ObjectDB.m_items, so item prefabs that never made it into the ObjectDB are still handled. Each prefab is visited once per pass.
  • Everything is recomputed from cached vanilla values, never from the live value, so repeated config pushes cannot compound. Lowering a multiplier now genuinely lowers it, and clearing an exclusion restores the vanilla number exactly.
  • Overrides parse in invariant culture, so a config written on one machine reads identically on every other one regardless of its decimal separator.
  • The config layout gained five new sections. Your existing Stack Multiplier is preserved - it stayed in 2 - Settings under the same key specifically so upgrading from 0.0.1 keeps it.
  • MinimumRequiredVersion moved to 0.1.1. Clients still on 0.0.1 will be asked to update, because they would compute different stack sizes to the server.

Licence

  • Relicensed under the MIT License. The previous terms required the author's approval before anyone could make a derivative work, which is not open source by any usable definition. MIT keeps the attribution requirement and drops the permission gate. ServerSync.cs is compiled in and stays under its own author's terms; see LICENSE.md.

[0.0.1]

  • Initial release.
  • Added dynamic item stack size modifier.
  • Configurable multiplier defaults to 3x.
  • Integrated ServerSync for server-authoritative configuration.