Ross-RossItemDrawers icon

RossItemDrawers

A set of tiered item drawers that hold a large amount of a single item, display its quantity on the front, and pull in matching items dropped nearby

Last updated an hour ago
Total downloads 5213
Total rating 2 
Categories Mods Utility Building AI Generated Deep North Update
Dependency string Ross-RossItemDrawers-1.0.7
Dependants 3 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
ValheimModding-Jotunn-2.30.0 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.30.0

README

RossItemDrawers

A drawer that holds a large quantity of a single item and shows that item and its count on its front face. Built from the Hammer, Furniture tab, at a Workbench.

A 3x3 wall of drawers, one of each tier, each showing its item and count

Tiers

Tier Capacity Recipe (at Workbench)
Item Drawer (wood) 1,000 10 Fine Wood
Stone Item Drawer 2,000 5 Fine Wood + 10 Stone
Black Marble Item Drawer 10,000 5 Fine Wood + 10 Black Marble

Capacities and build costs are the defaults; a server admin can change both per tier in the config file.

Drawers are 0.66m cubes and snap to each other, so they tile into a wall.

Controls

Input Effect
Use item from hotbar Assign that item to an empty drawer. Once a drawer has an item, the hotbar no longer touches it
E (Interact) Take one stack
Ctrl+E Take one item
Ctrl+E on an empty (zero-count) drawer Unassign it, so it can hold something else
Shift+E Deposit every matching item in your inventory

Ctrl and Shift here are Valheim's Crouch and Run actions, so rebinding those in Valheim's settings rebinds these too.

Nearby items

A drawer pulls in matching items dropped near it, so emptying a full inventory onto the floor of a storage room files everything away by itself. Only items a drawer is already assigned to are taken — a drawer never claims something it was not holding, and a full one takes nothing.

On by default, within 40 metres. Both the range and the switch are in the config under [Pickup], and are server-synced.

Compatibility

Drawers are Containers. Other mods see a drawer as a small chest holding its item, and use it through the ordinary inventory API with no drawer-specific support. This version is designed for:

  • Taking from drawers — crafting from nearby containers, OttoFuel, NoVikingLeftBehind: the drawer's whole count is available.
  • Storing into drawers — AzuAutoStore, Quick Stack Store: only the drawer's own item is accepted, up to its capacity. Empty and unassigned drawers accept nothing, so they are never chosen as a destination.
  • Take-all mods receive normal-sized stacks.

Items moved this way are applied to the drawer's count within a frame by the player whose mod moved them, who takes charge of the drawer the same way those mods take charge of a chest.

OttoFuel and NoVikingLeftBehind were verified in game against 0.9.x. The 1.0 container support above has not yet been tested in game with these mods.

Every player and the server must run the same ItemDrawers version.

Known limitations

  • Mods on two players' machines changing the same drawer in the same instant can race — whichever change lands last wins, the same exposure a vanilla chest has when two players use it at once.
  • A withdrawal made through the view in the exact frame a client disconnects may not reach the server.

Dependencies

  • BepInEx 5.4.2350
  • Jotunn 2.30.0

Thanks

To makail and KG, whose drawer mods are the inspiration for this one. RossItemDrawers is its own mod with its own code, and does not read or convert drawers built with theirs.