Quick Stack To Containers
A Barotrauma mod that allows you to quickly stack items from your inventory into containers by pressing the F key.
Features
- Press F to quickly stack items from your inventory into containers
- Supports stacking into multiple containers in your inventory (backpacks, pouches, toolbelts, etc.)
- Prioritizes the main backpack in the bag slot
- Items are stacked with matching items in containers when possible
- Automatically skips hand slots and diving gear
- Provides feedback messages in chat
Installation
- Place the "QuickStackToBag" folder in your Barotrauma's "LocalMods" directory
- Enable the mod in the game's mod menu
Configuration
You can modify the following settings in the QuickStackToBag.lua
file:
TRIGGER_KEY
: The key to press for quick stacking (default: F)BAG_TAGS
: Tags that identify bags/containersMAX_ITEMS_TO_PROCESS
: Safety limit to prevent infinite loopsPREFER_EXISTING_STACKS
: Whether to prefer stacking into existing item stacksCHECK_ALL_CONTAINERS
: Check all containers in inventory, not just primary bag slotPRIMARY_BAG_SLOT
: Slot number for the primary bag (typically slot 8)SKIP_HAND_SLOTS
: Skip hand slots when processing itemsHAND_SLOTS
: Slot numbers for hands (typically slots 6 and 7)SKIP_DIVING_GEAR
: Skip diving gear when processing itemsDIVING_GEAR_TAGS
: Tags for diving gear to skip
How It Works
When you press F:
- The mod identifies all containers in your inventory
- It then checks each item in your inventory (except those in your hands or diving gear)
- For each item, it tries to stack it into a matching stack in a container
- If no matching stack is found, it tries to place it in any valid slot
- Items are moved in order of container priority (main backpack first, then other containers)
Credits
Based on the "Press R to Reload" mod structure.