Detect-DetectStorage icon

DetectStorage

Detect Storage adds Detect Hub + Detect Chest for server-authoritative loot sorting in Valheim.

Last updated 2 days ago
Total downloads 41
Total rating 0 
Categories Mods Modpacks
Dependency string Detect-DetectStorage-0.1.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 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.2333
ValheimModding-Jotunn-2.27.1 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.27.1

README

Detect Storage (Valheim Mod)

Detect Storage adds a clean sorting workflow with 2 build pieces in a new Hammer category called Detect:

  • Detect Hub
  • Detect Chest

The system is multiplayer-safe and server-authoritative:

  • client sends requests only
  • server validates object + distance
  • server performs all item moves/filter writes

What it does

Detect Hub

  • Recipe: 20 Wood + 20 Stone
  • Container where you drop items to sort
  • Default scan range: 20m (Hub.ScanRadiusMeters)
  • Sort trigger: open the hub and press G
  • Cooldown: Hub.SortButtonCooldownSeconds (default 0.5)

Sort behavior:

  1. Reads each stack in the hub
  2. Finds Detect Chests in range that match the item filter
  3. Moves to the first matching chest with enough space
  4. Leaves stack in hub if no matching/free chest is available

Detect Chest

  • Recipe: 5 Wood
  • Uses vanilla wood chest model
  • Inventory size matches largest vanilla chest size
  • Single-item filter mode (v0.1)

Filter usage:

  1. Open a Detect Chest
  2. Press F to enter filter mode
  3. Click an item to set filter
  4. Press F then click empty slot to clear filter

Persistence:

  • ZDO key: detect_filter_item
  • Value: item prefab name

If filter is not set, Detect Chest accepts nothing.

Build radius visuals

  • The hub radius is shown only while you are in build placement for:
    • Detect Hub
    • Detect Chest
  • Radius is hidden after placement.

Install with r2modman (local zip)

  1. Open r2modman (Valheim profile)
  2. Import local mod zip
  3. Select DetectStorage-0.1.0.zip
  4. Launch game

Manual install

Copy:

  • BepInEx/plugins/Detect/Detect.dll

into your profile/server plugin folder:

  • <Profile>/BepInEx/plugins/Detect/Detect.dll

Required dependencies

  • denikson-BepInExPack_Valheim-5.4.2333
  • ValheimModding-Jotunn-2.27.1

Config keys

  • Hub.ScanRadiusMeters (default 20)
  • Hub.SortButtonCooldownSeconds (default 0.5)
  • Hub.ShowRadiusRing (default true)