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.
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