You are viewing a potentially older version of this package. View all versions.
Quads_Lab-Quads_Craft_From_Chests-1.4.2 icon

Quads Craft From Chests

Crafting stations, and hand-crafting from your inventory, use materials from nearby chests.

Date uploaded 2 days ago
Version 1.4.2
Download link Quads_Lab-Quads_Craft_From_Chests-1.4.2.zip
Downloads 83
Dependency string Quads_Lab-Quads_Craft_From_Chests-1.4.2

This mod requires the following mods to function

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

README

๐Ÿ“ฆ Quad's Craft From Chests

Quad's Craft From Chests

Crafting stations, and hand-crafting from your inventory, use materials from nearby chests.

version: 1.4.2 multiplayer: only who wants it made with: Claude Code

Source code ยท Report a bug ยท Discord

โœจ Features

  • Anything you can reach within the range counts toward a recipe. The game takes the materials from your inventory first, then from the chests.
  • The crafting menu shows how many of each material you have in total.
  • A Chest lines button beside the crafting tabs draws lines from the station to every chest in use; a Range button cycles the distance (5 to 30 m).

๐Ÿ“ธ Screenshots

The workbench: Chest lines and Range beside the tabs, and the materials counted from the chests

The workbench: Chest lines and Range beside the tabs, and the materials counted from the chests

Close up: the buttons and the counts

Close up: the buttons and the counts

๐Ÿงฉ Other mods

Known clashes

  • Adventure Backpacks ("Craft From Backpack"): handled. The backpack pays its part first and the chests pay only what is still missing. The backpack is never used as a chest.
  • Other craft-from-chests mods (AzuCraftyBoxes, CraftFromContainers (aedenthorn, and its forks), Craft From Chests (Toxo), CraftFromChestsPlus, Teflon Ted's Craft From Chests, StoreAndCraft, SmartCraft-Storage, and ValheimPlus while its CraftFromChest section is on): they also take from chests, and two such mods count every chest twice. When one is installed this mod stands down and leaves it to them; the log says so once.
  • Any mod that refuses a payment or already paid: respected. It runs after other mods and does nothing if they cancelled.

Works with our mods

Found a clash with another mod? Tell us which one and what happened.

๐Ÿ‘ฅ Multiplayer

Who needs it: Only the players who want it.

It only takes from chests you could open yourself: never one someone else has open, one behind a ward that keeps you out, or a private chest.

The host decides: how far it reaches (Radius). While you play on their world their values replace yours (your file isn't changed); a host without the mod leaves everyone their own.

โš™๏ธ Settings

In BepInEx/config/com.quad.craftfromchests.cfg, made the first time the game runs with the mod. r2modman and Thunderstore Mod Manager edit it under Config editor.

Display

Setting Default What it does
ShowHaveCounts true In the crafting window, show how many of each material you HAVE (inventory + chests) next to how many you need.
ShowLines false Draw lines from the crafting station to every chest it can use.
ToggleOffsetX 0 Move the 'Chest lines' button horizontally from its default spot beside the Upgrade tab (UI pixels).
ToggleOffsetY 0 Move the 'Chest lines' button vertically (UI pixels). Negative = down.
ToggleScale 1 Size multiplier for the 'Chest lines' button.
ToggleWidth 2 'Chest lines' button width as a multiple of the Upgrade tab's width.
RangeButtonWidth 1.4 'Range' button width as a multiple of the Upgrade tab's width.

General

Setting Default What it does
Enabled true Turn the mod on or off.
Radius 20 How far (in meters) from the crafting station a chest can be and still be used. In multiplayer the server's value applies.

๐Ÿค– Made with AI

Made with the help of Claude (Anthropic), with Claude Code: designed, written and checked together, and tried in the game.

๐Ÿงช About Quads Lab

Quads Lab is where Quad H (HardHeadHackerHead) builds software with AI, of every kind: these Valheim mods are one of its projects. Each mod is designed by a player, written with Claude Code and tested in our own world, with bobisme as our tester.

๐Ÿ“œ Recent changes

  • 1.4.2 A clearer page: what it does, who needs it in multiplayer, how it gets on with other mods, and where to report a bug. The game itself is unchanged.
  • 1.4.1 A new id, com.quad.craftfromchests (it was com.dhack.craftfromchests): your settings move over by themselves the first time it starts, and the old settings file is kept as a backup. Restart the game after this update. If an old copy is still installed beside it, this one stands down and says which file to delete, so the two never both run. The DLL now says it was made with AI, as Thunderstore asks. It also stands down next to Toxo's Craft From Chests, CraftFromChestsPlus, Teflon Ted's Craft From Chests, StoreAndCraft and SmartCraft-Storage, as it already did next to AzuCraftyBoxes and CraftFromContainers: two such mods count every chest twice.
  • Fix: next to Adventure Backpacks, crafting could cost up to twice as much (the backpack and the chests both paid). Now the backpack pays its part and the chests only what is still missing. Fix: "any one of these" recipes (meads and the like) could be crafted for free from the chests, or failed when you carried none. Fix: a craft the chests can no longer pay for (someone took the materials since the window counted them) is now refused with a message, instead of being handed over for less. Graves, carts, ships, a companion's bag and chest and a backpack are no longer used as storage. With AzuCraftyBoxes, CraftFromContainers or ValheimPlus' craft-from-chest installed, this mod stands down (two would count every chest twice). In multiplayer the server's Radius applies (2 to 50 m).

Every change is on the Changelog tab.

CHANGELOG

1.5.3

  • Settings: edits to the config file now apply while the game runs (a server owner no longer has to restart), and a server's admins can change the server's settings from their own game with Configuration Manager, where other players see them greyed out. Your config file always keeps your own values while you play on a server (saving it there could write the server's in). Players on an older version still get the server's settings.

1.5.2

  • Fix: after leaving a world for the main menu and joining one again, the chests claimed just before could no longer be looked up, and crafting from chests could stop working until a restart (the game renumbers its object ids on each join).

1.5.1

  • Fixed in multiplayer: two players crafting from the same chest at the same moment could both be paid for with the same materials (a free craft). A chest another player's game was looking after is now taken over when the crafting window opens and counts a moment later, and a craft is only paid from chests that are yours by then, so what the window shows is what will be paid.

1.5.0

  • Now in your language: English, Russian, German, Chinese (Simplified), Portuguese (Brazil), Spanish, French, Polish and Turkish, following the game's own Language setting. The game's own names are used for its things (items, creatures, lands, stations). The translations were made with AI: to correct a line, or add a language, put a file in BepInEx/config/translations/com.quad.craftfromchests/ named after the game's name for the language (German.json...) with only the lines you change, copied from translations/English.json on GitHub.

1.4.3

  • Fixed: it never takes from or puts into the game's Obliterator (what is in it burns when the lever is pulled), a Ledger Chest or the Arena's chests; only ordinary storage chests count.

1.4.2

  • A clearer page: what it does, who needs it in multiplayer, how it gets on with other mods, and where to report a bug. The game itself is unchanged.

1.4.1

  • A new id, com.quad.craftfromchests (it was com.dhack.craftfromchests): your settings move over by themselves the first time it starts, and the old settings file is kept as a backup. Restart the game after this update. If an old copy is still installed beside it, this one stands down and says which file to delete, so the two never both run. The DLL now says it was made with AI, as Thunderstore asks. It also stands down next to Toxo's Craft From Chests, CraftFromChestsPlus, Teflon Ted's Craft From Chests, StoreAndCraft and SmartCraft-Storage, as it already did next to AzuCraftyBoxes and CraftFromContainers: two such mods count every chest twice.

Earlier

  • Fix: next to Adventure Backpacks, crafting could cost up to twice as much (the backpack and the chests both paid). Now the backpack pays its part and the chests only what is still missing. Fix: "any one of these" recipes (meads and the like) could be crafted for free from the chests, or failed when you carried none. Fix: a craft the chests can no longer pay for (someone took the materials since the window counted them) is now refused with a message, instead of being handed over for less. Graves, carts, ships, a companion's bag and chest and a backpack are no longer used as storage. With AzuCraftyBoxes, CraftFromContainers or ValheimPlus' craft-from-chest installed, this mod stands down (two would count every chest twice). In multiplayer the server's Radius applies (2 to 50 m).

  • Fix: in multiplayer, crafting with materials from a chest another player had open could lose or duplicate items. Chests in use are now left alone.

  • Smoother: the crafting-screen buttons are only looked after while the inventory is open and aren't repositioned every frame, and the chest checks are worked out once and reused (no more stutter when opening the inventory). Hand-crafting from the inventory uses nearby chests, and the crafting window shows how many of each material you have.