McLovin-McCraftReach icon

McCraftReach

Craft and upgrade using materials from containers within 50m, without pulling them out first. Ownership-safe, no item loss.

Last updated a month ago
Total downloads 323
Total rating 1 
Categories
Dependency string McLovin-McCraftReach-1.1.0
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

McCraftReach

Craft and upgrade using materials from nearby containers, without pulling them out first.

What it does

Open any crafting station. Recipes you have the materials for — counting everything in containers within 50m — show as craftable, the ingredient counts include container stock, and crafting spends your own items first, then pulls the rest from the containers.

What it does NOT do (yet)

  • Building pieces (hammer) still use only your inventory; this version covers the crafting station panel (craft + upgrade).
  • Recipes that require only one ingredient (requireOnlyOneIngredient, e.g. some foods) are not covered when you hold none of the ingredient yourself.
  • Smelters, kilns, cooking stations and other fuel/ore inputs are not fed from containers.

Configuration

BepInEx/config/joaorodrigues.valheim.mccraftreach.cfg

Option Default What it does
Enabled true Master switch
Range 50 Container search radius, in meters
RespectPrivacy true Skip warded areas, private and group containers you don't own

Why it does not lose or duplicate items

Removing from a container's inventory without owning its ZDO desyncs and can lose or dupe items. Before removing, McCraftReach claims the container's ZDO, forces the latest blob to sync and reloads the cache — the same protocol the game uses in RPC_TakeAllResponse — then removes, which triggers the container's own Save because we now own it.

It only ever touches your inventory's CountItems / RemoveItem while a crafting method is on the stack, so nothing outside the crafting screen is affected.

Multiplayer

Every player needs the mod. It works through ZDO ownership of the containers.

Compatibility

  • Valheim 1.0.12 (network 40)
  • BepInEx 5.4.2350
  • Not compatible with other "craft from containers" mods running at the same time.

License

MIT.