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.
Valheim ItemInfiniteStack
Eliminates item stack limits while strictly preserving 1-item-per-slot for equipment, durability items, and quality gear. Includes clean UI numbers, split wheel controls, and stack consolidation.
| Date uploaded | 2 weeks ago |
| Version | 1.0.1 |
| Download link | ckforgame-Valheim_ItemInfiniteStack-1.0.1.zip |
| Downloads | 510 |
| Dependency string | ckforgame-Valheim_ItemInfiniteStack-1.0.1 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.
Preferred version: 5.4.2202README
Valheim.ItemInfiniteStack
A modern, high-performance, and intelligent Valheim mod that eliminates stack size limitations for resources, materials, consumables, and ammo — while strictly preserving 1 item per slot for weapons, armor, tools, and items with durability or upgrade tiers.
🌟 Key Features
1. ♾️ Safe Infinite / Unlimited Stacking
- Stack Wood, Stone, Metals, Ores, Food, Potions, Arrows, and Trophies up to 999,999,999 in a single slot.
- Fully protected against 32-bit arithmetic overflow — safe pickup and crafting even when moving millions of items.
- Works across player inventories, storage chests, personal chests, carts, ships, and obliterator containers.
2. 🛡️ Intelligent "1-Per-Slot" Protection (ยกเว้นไอเทมที่ต้องเก็บ 1 ชิ้น)
Items that possess unique properties or states never stack, preventing data loss:
- Durability Preservation: Any item with durability (swords, maces, bows, pickaxes, axes, torches) is strictly protected at 1 item per slot.
- Quality Tier Preservation: Weapons, armor, and tools with upgrade levels (Tier 1–4) remain strictly 1 per slot to prevent upgrade level collisions.
- Equipment Safety: Helmets, Chest armor, Leg armor, Capes/Shoulders, Shields, and Utility belts (Megingjord, Wishbone) are strictly exempt.
- Custom Blacklist & Whitelist: Effortlessly add custom modded items to either list through simple comma-separated config entries.
3. 🎨 Clean, Clutter-Free UI
- Eliminates the ugly vanilla
15/999999999text format! - AmountOnly Mode (Default): Shows clean RPG-style numbers (e.g.
150,2,500). - Compact Mode: Automatically formats large numbers cleanly (e.g.
1.5k,25M). - Slots with a single item (
stack == 1) keep the number hidden, preserving pristine vanilla aesthetics.
4. 🎚️ Split Dialog Usability Overhaul
- Mouse Scroll Wheel Support: Scroll on the split dialog slider to adjust counts with ease.
- Precision Modifiers: Hold
Shiftfor $10\times$ speed,Ctrlfor $100\times$ speed, or both for $1,000\times$ speed. - Quick Jump Keys: Press
Homefor 1 item,Endfor Max stack, andHorSpacefor Half stack ($50%$). - Formats slider numbers cleanly to eliminate UI text clipping.
5. 📦 Stack Consolidation (One-Key Merge)
- Consolidates fragmented duplicate stacks of the same item into single slots with a single keypress (Default:
Deletekey). - Optional
EnableAutoConsolidateOnOpenautomatically combines duplicate slots whenever you open a chest or inventory.
6. ⚖️ Optional Stack Weight Scaling
- Stacking 10,000 stones without weight adjustments would immediately encumber the player ($20,000\text{ kg}$).
- Configurable
StackableWeightMultiplier: reduce weight by $50%$ (0.5), $90%$ (0.1), or make materials completely weightless (0.0). - Equipment and combat gear retain their standard weight, keeping combat balance intact.
📥 Installation
Via Mod Manager (r2modman / Thunderstore)
- Search for
Valheim.ItemInfiniteStackin your mod manager. - Click Download with Dependencies.
- Launch the game through the manager!
Manual Installation
- Install BepInExPack Valheim.
- Download
Valheim.ItemInfiniteStack.dll. - Place
Valheim.ItemInfiniteStack.dllinto your<Valheim>/BepInEx/plugins/directory. - Start the game. The config file will be created in
<Valheim>/BepInEx/config/ckforgame.ItemInfiniteStack.cfg.
⚙️ Configuration Overview
Config file: BepInEx/config/ckforgame.ItemInfiniteStack.cfg
[1 - General]
## Master switch to enable or disable the mod.
Enabled = true
## Verbose debug logging.
LoggingEnabled = false
[2 - Stack Settings]
## Maximum stack limit for stackable items (safe bound: 999,999,999).
InfiniteStackLimit = 999999999
## Multiplier of vanilla stack size (0 = use InfiniteStackLimit).
GlobalStackMultiplier = 0
[3 - Exceptions (1-Per-Slot)]
## Protect items with durability (weapons, armor, tools).
ProtectDurabilityItems = true
## Protect upgradable items (max quality > 1).
ProtectQualityItems = true
## Protect equipment types (weapons, shields, armor, accessories).
ProtectEquipment = true
## Preserve vanilla stack size of 1.
PreserveVanillaOneStack = true
## Custom blacklist of prefab names that must remain 1 per slot.
CustomBlacklist =
## Custom whitelist of prefab names to force infinite stacking.
CustomWhitelist =
[4 - Weight Settings]
## Enable weight scaling for stackable items.
EnableWeightScaling = false
## Weight multiplier for stackable items (1.0 = normal, 0.5 = 50%, 0.0 = zero).
StackableWeightMultiplier = 1.0
[5 - UI & Display]
## Number display style: AmountOnly, Compact, StandardRatio.
DisplayFormat = AmountOnly
## Threshold above which Compact mode activates (e.g. 1000 -> 1k).
CompactThreshold = 1000
## Hide number text when stack count is 1.
HideSingleItemCount = true
[6 - Quality of Life]
## Enable mouse wheel and arrow keys on Split Dialog.
EnableSplitDialogEnhancements = true
## Base step size per mouse wheel tick.
SplitWheelStep = 1
## Automatically consolidate duplicate stacks upon opening chests.
EnableAutoConsolidateOnOpen = false
## Hotkey to merge duplicate stacks in open inventory / chest.
ConsolidateHotkey = Delete
🛠️ Architecture & Documentation
Full architectural specifications, design philosophy, and technical notes are included in the docs/ directory:
- Concept and Design Philosophy
- System Architecture
- Technical Specification
- Configuration Guide
- Roadmap & Milestones
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
CHANGELOG
Changelog
All notable changes to Valheim.ItemInfiniteStack will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[1.0.1] - 2026-09-25
Fix bugs
[1.0.0] - 2026-09-25
Added
- Infinite Stack System:
- Eliminates item stack limits for materials, resources, consumables, arrows, and valuables.
- Safe maximum bound of $999,999,999$ preventing 32-bit signed integer overflow.
- Optional
GlobalStackMultiplierto scale vanilla stacks instead of a flat limit.
- Intelligent 1-Per-Slot Protection Engine:
ProtectDurabilityItems: Strictly preserves 1 item per slot for weapons, armor, tools, and torches with durability.ProtectQualityItems: Preserves 1 item per slot for items with upgrade tiers ($>1$).ProtectEquipment: Preserves 1 item per slot for all combat and utility equipment types.PreserveVanillaOneStack: Maintains vanilla 1-stack size for unique non-stackable items.CustomBlacklist&CustomWhitelistcomma-separated configuration options.
- Performance & Overflow Protection:
- 64-bit safe arithmetic in
Inventory.CanAddItemandInventory.FindFreeStackSpace. - Batch chunk-based adding in
Inventory.AddItem, replacing vanilla's $O(N)$ 1-by-1 increment loop.
- 64-bit safe arithmetic in
- Clean UI & Display Formatting:
- Replaces vanilla
{0}/{1}(15/999999999) text with cleanAmountOnlyorCompact(e.g.1.5k,25M). - Zero-allocation string caching for small numbers.
- Automatic hiding of count for 1-stack items and single items.
- Replaces vanilla
- Split Dialog Usability:
- Mouse scroll wheel support for split slider.
- Precision modifiers (
Shiftfor $10\times$,Ctrlfor $100\times$). - Quick keys:
Home(Min: 1),End(Max: N),H/Space(Half: N/2).
- Stack Consolidation:
- One-key consolidation hotkey (
Delete) to merge fragmented duplicate stacks into single slots. - Optional
EnableAutoConsolidateOnOpento merge stacks automatically upon opening chests.
- One-key consolidation hotkey (
- Weight Scaling:
- Configurable weight multiplier for stackable items (0.0 to 1.0).
- Documentation:
- Complete architecture, concept philosophy, technical specifications, and configuration guides in
docs/.
- Complete architecture, concept philosophy, technical specifications, and configuration guides in