You are viewing a potentially older version of this package. View all versions.
LuminairPrime-LocalCraftFromStoragePrime-1.0.0 icon

LocalCraftFromStoragePrime

Craft, build, and store using nearby containers!

Date uploaded 2 weeks ago
Version 1.0.0
Download link LuminairPrime-LocalCraftFromStoragePrime-1.0.0.zip
Downloads 309
Dependency string LuminairPrime-LocalCraftFromStoragePrime-1.0.0

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

I vibe-coded this BepInEx plugin to 1) let you table-craft from nearby storage chests, 2) hammer-build from nearby storage chests, and 3) deposit personal inventory automatically to nearby storage chests. It doesn't let you fuel fire-class or smelter-class structures from storage because that was going to be a lot more work and I wanted to stay in scope for now haha. Creating this took a lot more work than I expected because I wanted it to be very reliable and 100% compatible with vanilla Valheim servers and clients. It should basically act like you are reaching out with very long arms; you'll even hear the relevant storage chests open/close in the distance. There will HOPEFULLY be no weird bugs like chests not working or items duping.

There are some options to tweak if you want: 1) storage range goes up to 64 and I have it 50 by default (table range is 20 for context), 2) you can set ReserveItems to keep 1 of everything in every chest so the automatic placement can refill the chests easily, 3) you can rename the "Store Nearby" button (and non-English people can change it to their language), and 4) you can add and remove items from the Store Nearby list (by default it just sends common materials). Most people will want to send raspberries/blueberries to storage, but for the convenience of those who like to eat them, I pulled berries out of the hard-coded send list and put them in the IncludedItems default list -- this will let you easily delete their words from the IncludedItems list in the settings to have them stay in your inventory (rather than needing to look up their keys in the docs and add them to the ExcludedItems list).

GL HF!

CHANGELOG

Changelog

1.2.1

  • New defaults:
  • Enabled refueling with ore from storage (by default)
  • Extended default range of all features from 50 to 64

1.2.0

  • Basic wood arrows in a chest's top-right corner slot now change how the mod uses the chest: 1 arrow excludes the chest from being used at all, and 2-100 allows it to be used but doesn't allow any ingredient to be drawn below that number of arrows. Yes that's a little confusing, but it's good because it's reusing one irrelevant Vanilla game item to add features, rather than walking over the game code even more.
  • You can better choose which storage containers to use. Personal, Ships, Carts, Barrel, Wardrobe and Pots are excluded by default but you can type them into the allowed list. Forever excluded storage: World loot, salvage, gifts, Obliterator and other players' Personal Chests.
  • Refuel from Storage now has more options. Smelter-class Ore and the new Smelter-class Non-Ore are on by default for metal ore, metal scraps, Petrified Tissue, flax, barley, oats, oat seeds, and soft tissue.
  • Store Nearby now completes multiple placements across synchronous container saves. This may or may not work or sound insane.
  • List of storage variable names that you can add into the ContainerTypes setting to allow the mod to use them:
Group Storage / approved prefab IDs
chests piece_chest_wood, piece_chest, piece_chest_blackmetal, piece_chest_grausten
personal piece_chest_private (your own personal chest, nobody else's)
ships Karve, VikingShip, VikingShip_Ashlands
carts Cart, Sled
barrel piece_chest_barrel
wardrobe piece_chest_warderobe
pots piece_pot1, piece_pot1_red, piece_pot1_cracked, piece_pot2, piece_pot2_red, piece_pot2_cracked, piece_pot3, piece_pot3_red, piece_pot3_cracked

1.1.0

  • Store Nearby upgraded to use more a advanced item list system to hopefully prevent mis-categorized items (onions and most boss drop trash now send to storage). Config file format changed; automatic migration script will apply on first run.
  • Store Nearby now places stacks in vanilla's item-dependent row order, filling materials bottom-first (why vanilla does that, I have no idea lol).
  • Refuel from Storage added: pressing E on a fireplace, torch, sconce, smelter, furnace, kiln, etc, will add the proper fuel from nearby storage. The refueling messages on the screen are kind of inconsistent English, but I copied them from Valheim's defaults anyway to appear vanilla.
  • Refuel from Storage has three options: Fireplace Fuel and Smelter Fuel (on by default; kiln wood counts as fuel), and Smelter Ore for ore, barley, flax, and soft tissue (off by default). Its Distance defaults to 50 m like the other features.

1.0.0

  • I hope this works! HOLD ONTO YOUR BUTTS!!!