CargoToGo

版本 v1.0.0·更新於 2026-10-09

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

模組介紹 作者原文

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.

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

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.

| Setting | Default | Description |

|---|---|---|

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

| PullFromContainers | true | Allow packing materials from nearby chests. |

| UseAzuCraftyBoxes | true | Also pack from containers reached by AzuCraftyBoxes, if installed. Needs PullFromContainers. |

| ContainersFirst | true | Take materials from chests before your inventory. |

| PackInWorld | true | Ctrl + Alt + Left click in the world packs a cargo instead of placing the piece. |

| AltDestroyAnyPiece | false | Alt + Destroy returns a cargo even for pieces that were not built from one. |

| PackEffects | true | Play build dust, sound and the piece's break effect when packing. |

| ShowKeyHints | true | Show the Pack cargo / Repack hints in the build-mode key hint bar. |

| ShowCargoTab | true | Add the Cargos tab to the build menu. Needs a game restart. |

| WeightMultiplier | 1 | Cargo weight = weight of its contents × this value. Needs a game restart. |

| VerboseLogging | false | Also write DEBUG lines to the BepInEx log. |

Troubleshooting

Log lines from this mod look like …-CargoToGo-LEVEL-… in BepInEx/LogOutput.log. If something goes wrong, enable VerboseLogging and include the CargoToGo lines when reporting an issue.

Credits

Created by kydldev.

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
CargoToGo-1.0.0.zip
檔案大小
118.0 KiB