DrummerCraig-HammerCraftingMaterials icon

HammerCraftingMaterials

Right-click any piece in the hammer build menu to pull its required materials from nearby chests directly into your inventory. Configurable search radius.

Last updated 2 weeks ago
Total downloads 460
Total rating 1 
Categories Client-side Utility AI Generated
Dependency string DrummerCraig-HammerCraftingMaterials-1.1.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2202 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2202

README

HammerCraftingMaterials — Valheim Mod

Right-click any piece in the hammer build menu to pull its required materials from nearby chests directly into your inventory.


Features

Feature Detail
Right-click pull Open the hammer build menu, right-click any piece to pull its materials you are short in your inventory
Shift+Right-click pull Open the hammer build menu, shift+right-click any piece to pull all its materials regardless of what you have in your inventory
Smart search Searches all accessible chests within a configurable radius (default 10 m)
Partial pulls Pulls as much as it can find and reports what's still missing

Requirements

  • Valheim (any recent version)
  • BepInEx 5.4.x for Valheim — install via Thunderstore or r2modman

Installation

Option A — r2modman / Thunderstore Mod Manager (recommended)

  1. Open r2modman, select your Valheim profile.
  2. Click Install from file and select the HammerCraftingMaterials-1.0.0.zip package.
  3. Launch Valheim through the mod manager.

Option B — Manual

  1. Make sure BepInEx is installed in your Valheim folder.
  2. Copy HammerCraftingMaterials.dll into:
    Valheim/BepInEx/plugins/HammerCraftingMaterials/HammerCraftingMaterials.dll
    
  3. Launch Valheim.

Configuration

Config file is auto-generated on first launch at:

Valheim/BepInEx/config/com.hammercraftingmaterials.valheim.cfg
Key Default Description
ChestSearchRadius 10 Radius in metres to search for nearby chests

How It Works

  1. Equip your hammer and open the build menu.
  2. Right-click any piece in the piece selection list.
  3. The mod:
    • Checks what materials that piece requires.
    • Counts what you already have in your inventory.
    • Searches all nearby, accessible chests within ChestSearchRadius metres.
    • Removes only the missing materials from chests and adds them to your inventory.
    • Displays a MessageHud popup summarizing what was pulled (and what's still missing).
    • (Optional Shift+Right-click ignores your inventory and removes all needed materials from chests and adds them to your inventory.)

Known Limitations

  • Chests inside a ward you don't have access to are skipped.
  • If your inventory is full, items that can't stack will not be pulled.

Changelog

1.0.0

  • Initial release
  • Right-click pull from the hammer build menu
  • Configurable chest search radius

License

MIT — do whatever you want, attribution appreciated.