You are viewing a potentially older version of this package. View all versions.
KydlDev-CargoToGo-2.0.1 icon

CargoToGo

Pack the materials of any build piece into a single cargo item, carry it in your inventory and build with it later. Pulls from nearby chests, supports AzuCraftyBoxes and adds a Cargos tab to the build menu.

By KydlDev
Date uploaded a week ago
Version 2.0.1
Download link KydlDev-CargoToGo-2.0.1.zip
Downloads 44
Dependency string KydlDev-CargoToGo-2.0.1

This mod requires the following mods to function

ValheimModding-Jotunn-2.30.2 icon
ValheimModding-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.2
denikson-BepInExPack_Valheim-5.4.2351 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.2351
KydlDev-KydlCore-1.1.1 icon
KydlDev-KydlCore

Shared runtime for all KydlDev mods: one UI root and theme, the KY hub window (F6; the one menu of every KydlDev mod) and the KY-Items category and registry.

Preferred version: 1.1.1

README

CargoToGo

Pack the materials for any build piece into a single cargo item, carry it in your inventory, and build with it later.

Gather the wood, stone and nails for a house once, turn each piece into one compact item, and take it with you instead of hauling stacks of raw materials around. The cargo items should be transferred to the gravestone upon death.

How it works

Action Controls
Pack a cargo Select a piece in the hammer menu, then Ctrl + Alt + Left click. Works on the piece in the build menu and (by default) in the world.
Build with a cargo Select the piece and place it as usual. If you hold a cargo for that piece, it is used up instead of the materials.
Repack a piece Alt + Destroy (middle mouse by default) on a piece that was built from a cargo. You get the cargo back instead of loose materials.
Unpack a cargo Ctrl + Alt + Right click the cargo in your inventory. It is destroyed and the materials are returned.

When you pack, materials are taken from nearby chests first (20 m by default) and then from your inventory. A cargo always contains exactly the materials the piece costs, and it needs one free inventory slot.

If the world has free building enabled, packing needs no materials and unpacking returns none, the same as vanilla building and deconstructing.

Cargo rules

  • Cargos are unstackable and weigh as much as the materials inside (adjustable in the config).
  • A cargo stays in your inventory. It can't be dropped, moved to a chest or used for anything except building its piece.
  • Death: your cargos go to your gravestone together with the rest of your items. See Death and gravestones.
  • Portals: a cargo can pass through a portal only if every material inside it can. A cargo holding ores or ingots is blocked just like the loose items would be. World portal settings are respected.
  • Crafting station requirements for the piece still apply when you place it.

Death and gravestones

When you die, your cargos are moved to your gravestone together with the rest of your items, and they stay there until you pick them up, even if the gravestone unloads and reloads or you relog.

  • Take all (or moving a cargo over by hand) puts it back into your inventory.
  • While a cargo is in a gravestone it can't be dropped on the ground, moved to another container, unpacked or built from. It is locked until it is back in your inventory.
  • Like every other item, cargos are deleted if the world's death rules delete unequipped items.

The Cargos tab

A fifth tab, Cargos, is added to the build menu. It lists only the pieces you currently hold a cargo for and updates live as you pack, build and unpack.

Key hints

While in build mode, the key hint bar shows Pack cargo and Repack with your current key bindings (keyboard only).

AzuCraftyBoxes (optional)

If AzuCraftyBoxes is installed, CargoToGo can also pack from the containers it reaches. This follows AzuCraftyBoxes' own container range, chest toggles, item include/exclude rules, "leave one", drawers and bags. It works even if CargoToGo's own range is set to 0. AzuCraftyBoxes is not required.

Configuration

The config file is generated on first launch at BepInEx/config/com.kydldev.CargoToGo.cfg. Every setting is also on the CargoToGo tab of the KY hub (F6, needs the KydlCore mod, which the mod manager installs).

Setting Default Description
General / Enable Mod true Master switch. Off = no packing, repacking, key hints or Cargos tab; cargos you already carry stay safe and can still be unpacked.
Containers / Enable true Allow packing materials from nearby chests.
Containers / Range 20 Radius in metres to search for chests when packing. 0 turns CargoToGo's own search off (combine with UseAzuCraftyBoxes to rely only on AzuCraftyBoxes' range).
Containers / UseAzuCraftyBoxes true Also pack from containers reached by AzuCraftyBoxes, if installed. Needs Containers / Enable.
Containers / ContainersFirst true Take materials from chests before your inventory.
PackInWorld / Enable true Ctrl + Alt + Left click in the world packs a cargo instead of placing the piece.
Repack / Enable true Alt + Destroy turns a piece that was built from a cargo back into a cargo.
Repack / AnyPiece false Alt + Destroy returns a cargo even for pieces that were not built from one.
Effects / Enable true Play build dust, sound and the piece's break effect when packing.
KeyHints / Enable true Show the Pack cargo / Repack hints in the build-mode key hint bar.
CargoTab / Enable true Add the Cargos tab to the build menu. Needs a game restart.
General / Weight multiplier 1 Cargo weight = weight of its contents x this value. Needs a game restart.
DebugLog / Enable false Also write DEBUG lines to the BepInEx log.

Multiplayer

CargoToGo is a client-side mod: nobody on a server is required to have it. If the server and a player both have it, the versions must match exactly (a player with a different version is refused). Players without CargoToGo can join, but they cannot take cargos out of a death gravestone. The settings are read from each player's own config.

Troubleshooting

Log lines from this mod are tagged CargoToGo in BepInEx/LogOutput.log. If something goes wrong, enable DebugLog and include the CargoToGo lines when reporting an issue.

Every death that involves cargos logs a line such as Death of <name>: 3 cargo(s) moved to the gravestone. If you lose a cargo on death, that line (or a warning in its place) is the first thing to include in your report.

See CHANGELOG.md for what changed in each version.

Credits

Created by kydldev.


KydlDev

Get help and stay in touch

Questions, bug reports, ideas or mod requests? Come say hi in the KydlDev Discord: https://discord.gg/tX2CcTNC4W Everyone is welcome, and it is the quickest way to reach me. Source code and issues: https://github.com/kydlDev

CHANGELOG

Changelog

2.0.1

  • Changed: needs KydlCore 1.1.1 or newer (the KY hub shows every settings category of the mod as its own tab).
  • Changed: all the Enable switches are now together in [General] and have new names: Enable Mod (was EnableAll) and Enable Containers, Enable Pack In World, Enable Repack, Enable Effects, Enable Key Hints, Enable Cargo Tab (each was Enable in its own section). The values you had set are taken over; the old entries are removed from your config file.
  • Changed: Enable Mod is now the first setting of [General], in the F1 menu and in the F6 hub (your value is taken over).
  • Changed: [General] WeightMultiplier is now [General] Weight multiplier and is the last setting of the list (the value is taken over).

Testing

  • Unit tests: 27 passed. Integration tests: 38 passed.
  • Property-based tests (FsCheck, included in the unit tests above): 8 property checks with generated inputs.
  • Coverage of the testable code: 100%. Mutation testing (Stryker): 100% of the mutants are caught by the tests.
  • Performance benchmarks (BenchmarkDotNet): 4.
  • Static analysis (SonarQube): no Medium or High issues.
  • In game with DrakesTestLab: the full suite of 6 tests per run, run 3 times in a row on the release build, all green (the release requirement).

2.0.0

  • Tested in game with the full TestLab suite (6 tests): 3 green runs in a row on 2026-11-05, plus the ecosystem run with all 12 KydlDev mods loaded together.
  • Internal port to the KydlDev spec (new folder layout, KydlCore feature registry, one hub tab, TestLab suite). No change to gameplay or to the config file.
  • Checked in game on 2026-11-04 (clean start and quit with all mods loaded, no errors from this mod).
  • Network: CargoToGo stays a client-side mod (nobody is required to have it), but a server that has it now refuses clients that have a different version (VersionCheckOnly, patch-strict). Players without CargoToGo can still join; they cannot take cargos out of a death gravestone.
  • Breaking: CargoToGo now needs the KydlCore mod (hard dependency; the mod manager installs it).
  • All settings are now also on the CargoToGo > Settings tab of the KY hub (F6), with the same controls as the config file.
  • Log lines now use the shared KydlDev format (VerboseLogging still switches the detail lines on).

1.1.0

Fixed

  • Cargos were destroyed when you died. They now travel to your gravestone together with the rest of your items and are still there when the gravestone reloads (walking back to it after respawning, relogging, another player loading it).

Changed

  • Cargos in a gravestone are locked. They can be recovered into your own inventory with Take all (or by moving them over). While in a gravestone they can't be dropped on the ground, moved to another container, unpacked, used or built from.
  • Clearer messages when you try to drop a cargo you dragged out of a gravestone, or to unpack a cargo that isn't in your own inventory.

Added

  • Each death that involves cargos writes a line to the BepInEx log (Death of <name>: N cargo(s) moved to the gravestone.), with a warning if the numbers don't add up. Useful when reporting an issue.

Notes

  • World modifiers that delete items on death still delete cargos, like any other item.