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.
BagOHeim
Bag O' Heim: packs that always hold the same things (potions, food, arrows, portal kits or anything you like) and refill from your base's chests.
| Date uploaded | 4 days ago |
| Version | 1.0.0 |
| Download link | Svaha-BagOHeim-1.0.0.zip |
| Downloads | 42 |
| Dependency string | Svaha-BagOHeim-1.0.0 |
This mod requires the following mods to function
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.2351ValheimModding-Jotunn
Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.
Preferred version: 2.30.2README
Bag O' Heim
Packs that always hold the same things. Tell a pack what it should contain, and it refills itself from the chests in your base.
| Pack | Holds | Made at a workbench from |
|---|---|---|
| Bag O' Potions | potions and meads | 6 Leather scraps, 2 Deer hide, 2 Resin |
| Bag O' Lunch | food | 6 Wood, 2 Leather scraps |
| Bag O' Arrows | arrows and bolts | 4 Deer hide, 4 Leather scraps, 2 Wood |
| Bag O' Portals | portal materials, preset to two portals' worth | 4 Deer hide, 4 Leather scraps, 2 Greydwarf eyes |
| Bag O' Stuff | anything | 6 Deer hide, 8 Leather scraps |
Using a pack
- Right-click a pack in your inventory (or press its hotbar key) to open it. It opens like a chest: drag items in and out.
- Next to it, a panel lets you:
- Rename the pack. Leave the name empty to go back to the default.
- Remember these amounts: fill the pack the way you like it, click this, and that's what it refills to.
- Edit amounts with − / + (hold Shift for ×10) or remove items. Search for items to add, even ones you don't have yet.
- Refill now.
- Each pack looks like a backpack with the game's own icon on it, like an iron-on patch (a mead, cooked meat, an arrow, a portal, a chest). A small icon of what's inside shows in the corner of its slot, along with how full it is (e.g.
18/20).
Refilling
Packs refill from ordinary chests in your base: the area covered by the workbench you're near, with overlapping workbenches counting as one base.
- Press K anywhere in your base to refill every pack you're carrying.
- Or put a pack in a chest in your base and take it out again.
- Optional: turn on
AutoRefillOnEnteringBaseto refill whenever you walk into your base (off by default).
If something can't be filled, you're told what's missing. Packs only take from chests you could open yourself, and skip chests someone has open, gravestones, ships and carts.
Good to know
- A pack's contents count toward your carry weight at half weight by default (configurable from full weight to weightless).
- Packs can't go inside other packs.
- A pack holding ore or anything else portals don't allow blocks portals, just as carrying the item would.
- Install on the server as well as every client. Packs are new items, and a server without the mod removes items it doesn't recognise.
Configuration
BepInEx/config/mbaya.BagOHeim.cfg, or Gale's config editor:
| Section | Key | Default | Notes |
|---|---|---|---|
| General | RangeMode | Workbench | Workbench = your base; Distance = within Range meters |
| General | Range | 50 | Meters, used in Distance mode |
| Packs | NamingStyle | BagO | Plain = Potion Pack, Lunchbox, Quiver, Portal Bag, Backpack |
| Packs | Columns / Rows | 4 / 2 | Slots per pack |
| Packs | ContentsWeight | 0.5 | 1 = full weight, 0 = weightless |
| Refill | RefillKey | K | |
| Refill | AutoRefillOnEnteringBase | false |
CHANGELOG
Changelog
1.3.3
- The pack's settings panel no longer starts at the far right and jumps. It now moves next to the pack's contents window as soon as that window appears when you open a pack, and stays with it, instead of only after you click something.
1.3.2
- Equipping from an open pack now uses the game's own equip. Right-clicking gear in a pack moves it into your inventory and equips it the same way as from your inventory (including the equip delay most gear has). If it can't be equipped right then, it goes back into the pack instead of staying out. What happened is written to the log (
Equip from pack: ...).
1.3.1
- Packs can't go inside other packs, and that rule now also covers adding an item to a specific slot (it was already enforced when dragging).
1.3.0
- Bigger, clearer pack icons. The icon on each pack's backpack is about half again as large and has a white outline, so it's easy to see in a small slot.
Packs / IconStyle = IconOnlydrops the backpack and shows just the outlined icon, filling the slot (restart the game to apply). - Lock a pack. A new Lock this pack button in the pack's panel keeps a pack out of building, crafting and shooting: a locked pack's contents are never counted or taken automatically. Locked packs show
[locked]in their tooltip. Unlock it to use it again. - Build and craft straight from your packs. Materials inside packs you're carrying now count when the game checks whether you can build or craft (a Bag O' Portals supplies a portal's materials, and the wood for a workbench), and when you do build, whatever your inventory can't cover is taken out of the packs. You no longer have to drag things out first (
Packs / UsePackContentsForBuilding).
1.2.0
- Bows and crossbows use the arrows in your pack. The game only looks for ammo in your inventory, so when you start to draw or shoot with none there, a stack of matching arrows or bolts is taken out of a carried pack (such as a Bag O' Arrows) into your inventory, and you shoot as normal. A message tells you what was taken. Press K or click Refill to put spare ammo back. Switch it off with
Packs / UseAmmoFromPacks. - The pack's settings panel is bigger and closer. It now scales with the game's windows (on a large or high-resolution screen it used to look tiny next to the inventory), has larger text, and sits right beside the pack's contents window instead of at the edge of the screen.
Packs / PanelScalesets a size by hand. - Equip straight from a pack. Right-click a weapon, armour, a shield, arrows or any other equipment in an open pack and it is moved into your inventory and equipped in one step (
Packs / EquipFromPacks).
1.1.0
- The button in an open pack is now simply Refill (it was "Refill now"). It tops the pack up to what it's set to hold: for a Bag O' Portals, two portals' worth.
- Refill now takes from your own inventory first, then from chests in your base for anything still missing, so it works away from your base too. It never takes what you're wearing or holding, and never other packs. Switch it off with
Refill / TakeFromInventory. - The K key (refill all packs) works the same way.
- A Bag O' Portals now also holds 20 Wood, for the workbench a portal has to be built near (
Packs / PortalBagWood, 0 for none). Portal bags you've already set amounts for keep their own amounts.
1.0.0
- Initial release: Bag O' Potions, Bag O' Lunch, Bag O' Arrows, Bag O' Portals and Bag O' Stuff, with remembered amounts and refilling from your base's chests.