Wire-WiresBalancedCraftFromNearbyChests icon

WiresBalancedCraftFromNearbyChests

Craft, build, refuel and feed machines from deliberately named nearby chests.

By Wire
Last updated 2 hours ago
Total downloads 139
Total rating 1 
Categories Mods Client-side Deep North Update
Dependency string Wire-WiresBalancedCraftFromNearbyChests-0.1.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 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.2350

README

Wire's Balanced Craft From Nearby Chests

Craft, build, refuel and feed machines from deliberately named nearby chests.

Unlike mods that treat every nearby container as one giant inventory, this mod only uses chests whose custom names match the station, tool or machine you want them connected to. https://imgur.com/a/BN3TRma

How it works

  • Your player inventory is always used first.
  • Only correctly named nearby chests are used after that.
  • Chest-name matching is case-insensitive.
  • Every route has three configurable name alternatives; unused ones can be left blank.
  • One chest can connect to multiple nearby stations of the same route, and one station can connect to multiple matching chests.
  • Normal Valheim access rules still apply, including wards and chests currently being used by another player.
  • Resources are removed from the real chest inventory, so everybody sees the same contents.

Connection visuals

Hover a crafting station or refill/feed object to see every connected chest in range.

Hover a connected chest to see every compatible crafting station or refill/feed object in range.

Hammer, Hoe, Cultivator and Serving Tray connections are shown only while that tool's build/piece menu is open.

The mod uses Valheim's vanilla station-connection effect.

Multiplayer

The server does not need to have this mod installed.

You can join a completely vanilla/unmodded server with the mod installed on your client and use its features normally. The server does not reject you, and players without the mod can continue playing normally.

On an unmodded server:

  • Modded players use their own local chest-name aliases.
  • Players without the mod do not get craft/refill-from-chest functionality.
  • Items removed through the mod are removed from the actual networked chest, so all players see the same resulting chest contents.
  • Normal multiplayer chest access and wards are respected.
  • A chest currently being used by another player is skipped under normal vanilla rules.

If MultiUserChest is installed for the server and players, chests that another player currently has open remain usable. This mod uses MultiUserChest's synchronized chest-removal path for that concurrent-use case instead of stealing ownership or closing the other player's chest.

If the server also has this mod installed:

  • The server's chest-name aliases are synchronized to modded clients.
  • Modded players therefore use the same routing names.
  • Clients without the mod are still allowed to join; they simply do not get the mod's features.

This makes the server install optional: install it on the server when you want shared/authoritative routing configuration.

Chest priority

If several matching chests are in range, their names determine which chest is used first using the mod's deterministic Windows-like title order.

For machines that accept several different inputs, the first valid item inside a chest is chosen from bottom-left to top-right, row by row.

Crafting station routes

Route Default chest-name alternatives
Workbench Work Bench, Workbench
Forge Forge
Stonecutter Stonecutter, Stone Cutter
Artisan Table Artisantable, Artisan Table, Artisan
Black Forge Blackforge, Black Forge
Galdr Table Galdr, Galdr Table
Cauldron Food Cauldron, Cauldron
Food Preparation Table Food Preparation Table, Food Table, Food Preparation
Mead Cauldron Mead, Mead Cauldron

Build-tool routes

Route Default chest-name alternatives
Hammer Hammer, Building
Hoe Hoe, Landscaping
Cultivator Cultivator, Farming
Serving Tray Serving Tray, Tray, Feasts

These routes supply resources for building/placing with the corresponding tool.

Refill / feed routes

Route Default chest-name alternatives Used for
Charcoal Kiln Charcoal Kiln, Kiln Wood
Frigid Kiln Frigid Kiln, Frost Kiln, Liquid Frost Ice
Frost Foundry Frost Foundry, Foundry, Casts Liquid Frost and vanilla-valid casts
Smelter Smelter Coal and vanilla-valid ore
Blast Furnace Blast Furnace, Furnace Coal and vanilla-valid ore
Refuel Refuel Campfires, hearths, fuelled lights/braziers, Hot Tub and other generic fuelled fire pieces
Eitr Refinery Eitr Refinery, Refinery, Eitr Sap / Soft Tissue as vanilla allows
Windmill Windmill, Mill, Barley Barley
Spinning Wheel Spinning Wheel, Spinning, Flax Flax
Stone Oven Stone Oven, Oven Fuel and vanilla-valid uncooked oven items
Fermenter Fermenter, Fermentation, Mead Base Vanilla-valid fermentation bases
Ballista Ballista, Turret, Ammo Vanilla-valid ballista ammo
Shield Generator Shield Generator, Shield Vanilla-valid generator fuel
Catapult Catapult, Siege Anything vanilla allows the Catapult to load

The mod does not invent its own item whitelist for these machines. Valheim still decides whether an item is valid for the target.

Generic Refuel group

The Refuel route covers vanilla pieces that use Valheim's normal fuel/refill interaction rather than having their own dedicated route, including common campfires, hearths, torches, sconces, braziers and the Hot Tub.

Pieces that do not have a normal refill interaction are not included just because they emit light.

Chest naming

Chest names only need to contain one configured alias for the route.

Examples:

  • 1 Smelter Ore matches Smelter
  • Main Building Mats matches Building
  • Kitchen Food Table Ingredients matches Food Table

Matching is case-insensitive, but spaces inside an alias are literal.

An alias can belong to only one route. If you enter an alias already used by another route, the new field is automatically cleared. Existing duplicate aliases in the config are also resolved automatically on startup.

Configuration

Use BepInEx Configuration Manager or edit:

BepInEx/config/wire.valheim.balancedcraftfromnearbychests.cfg

You can change all three aliases for every crafting station, build tool and refill/feed route, as well as the chest-renaming and connection-visual options.