
CraftFromContainers
Craft From Containers mod by Erinthe (aedenthorn) on Nexus.
Date uploaded | 2 weeks ago |
Version | 3.8.0 |
Download link | Grizzzly-CraftFromContainers-3.8.0.zip |
Downloads | 2391 |
Dependency string | Grizzzly-CraftFromContainers-3.8.0 |
This mod requires the following mods to function

denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.
Preferred version: 5.4.2202README
Craft Build Smelt Cook Fuel Pull From Containers by aedenthorn
About this version
This mod was originally written by Erinthe (aedenthorn on Nexus.
Features
Allows you to make use of resources in nearby containers when crafting, building, using smelters and kilns, refueling fires, cooking food, etc.
Description
This mod allows you to pull resources from all containers in range when:
- crafting an item
- upgrading an item
- building a construction piece
- adding fuel or ore to a smelter
- adding wood to a kiln
- adding fuel to a fire, standing torch, or sconce,
- cooking food in a cooking station
- doing whatever it is you do with windmills
- reloading ballista turrets
It also provides several modifier keys for advanced behaviour
- a modifier key (left shift by default) that, when held, pulls until full for ore and fuel.
- a modifier key (left ctrl by default) that, when held, pulls the resources into the player inventory instead of building/crafting.
- a modifier key to turn off the mod's behaviour entirely (left alt by default) when held down. This behaviour can also be reversed in the config to only allow this mod to perform its function when the key is held down by setting SwitchPrevent to true.
Features
Crafting stations and build menu will show an item's creatability based on resources available in all nearby containers rather than just player inventory.
Resource requirement numbers will now also show the total amount available in nearby chests. You can customize this in the config file.
Resources that the player's inventory doesn't have enough of will flash yellow (customizable) instead of red.
When building a container, there will now be particle effect lines between the container and crafting stations in range, thanks to bakaspaceman who wrote this code!
Prevent Lists
There are two prevent lists in the config:
- FuelDisallowTypes - specifies types of consumables like wood and coal that are disallowed (does not apply to kilns, as kilns considered wood an ore)
- OreDisallowTypes - specifies types of ore (anything that is transformed into something else) that are disallowed.
Both lists should be comma separated with no spaces, e.g. RoundLog,FineWood.
Item names are available here.
Container Types
The config contains toggles for each type of chest as well as ship and wagon containers to ignore completely.
Config
A config file BepInEx/config/aedenthorn.CraftFromContainers.cfg is created after running the game once with this mod).
You can adjust the config values by editing this file using a text editor or in-game using the Config Manager.
Notes
This mod replaces the Player.ConsumeResources method, so may conflict with anything that tries to patch that.
If you want to see what's happening behind the scenes, the log will spew out mildly informative information about where the resources are coming from (see screenshot).
Technical
To install this mod, the easiest way is to just use Thunderstore. It should take care of all dependencies.
To install manually, place the dll file in the BepInEx/plugins folder. You will need BepInEx.
Code is at https://github.com/aedenthorn/ValheimMods.
If you want to complain or ask for help or help me test my mods, you can visit my Discord server.
Click here for a list of all my mods for Valheim.
CHANGELOG
Version 3.8.0
- Pull from nearest first
Version 3.7.5
- Fixed multiple craft
Version 3.7.3
- Fixed missing method
- Fxied multiple craft
Version 3.7.1
- Fixed fuel and ore rpc
Version 3.5.1
- Rebuild for update
Version 3.5.0
- Fix for update
Version 3.4.0
- Fix for 0.217.14
Version 3.3.1
- Balista reload fix
Version 3.3.0
- Added ballista reloading
Version 3.2.1
- Tooltip fix
Version 3.2.0
- Fix for new update
Version 3.1.2
- NRE fix
Version 3.1.1
- NRE fix
Version 3.1.0
- Performance fix
Version 3.0.2
- Small performance tweaks
Version 3.0.1
- Added private area check
Version 3.0.0
- Fix for mistlands update
Version 2.3.0
- Added container ignore types to config
Version 2.2.4
- Fix for Crafting Items with recipe requirements more than the max stack size #73
Version 2.2.3
- Fix for Crafting Items with recipe requirements more than the max stack size #73
Version 2.2.2
- Odin QOL compatibility
Version 2.2.0
- Fix for oven
Version 2.1.3
- Fix for holding PullItemsKey
Version 2.1.2
- Prevent null exception
Version 2.1.1
- Save container after changing inventory
Version 2.1.0
- Fixed wards
Version 2.0.8
- Log config option
- Better container selection
Version 2.0.7
- Removed load call when getting list of containers
Version 2.0.6
- Fix for not recognizing some new containers
Version 2.0.5
- Fixed not taking from new containers
Version 2.0.4
- Fixed not showing amount in containers
Version 2.0.3
- Maybe fix for multiple people opening containers
Version 2.0.2
- Fix for exception, conflicts
Version 2.0.0
- Fix for custom containers
Version 1.9.0
- Allow pull all with key even when mod requires activation key
Version 1.8.1
- Switched prevent modifier key name due to naming confusing
Version 1.8.0
- Should prevent pulling from containers in use by other players
Version 1.7.4
- Fixed pulling all on normal pull
Version 1.7.2
- Fix for not pulling ore
Version 1.7.1
- Fixed exception on add all fuel, added hover text to fuel
Version 1.7.0
- Added pulling until full for ore and fuel
- Fixed broken allow build
Version 1.6.1
- Fix for compatibility with crafting station requirement mod
Version 1.6.0
- fixed pulling to inventory even if you have enough
Version 1.5.0
- Added lines showing connections when building containers, thanks to bakaspaceman!
Version 1.4.4
- Fixed containers not accessible, debug message
Version 1.4.2
- Reenabled new collider method of getting nearby chests
- Fixed containers not accessible
Version 1.4.1
- Fixed fps drop
Version 1.4.0
- Better nearby container check
Version 1.3.2
- Nexus id
Version 1.3.0
- Added oreDisallowTypes
Version 1.2.0
- Fixed cart inventory pulling
Version 1.1.2
- Changed default prevent key to left alt
Version 1.1.0
- Added list of forbidden fuel
Version 1.0.0
- Added access check
Version 0.11.2
- Fixed pulling instead of crafting
Version 0.11.1
- Remove non-container chests from list
Version 0.11.0
- Added modifier key to pull resources into player inventory rather than crafting/building
Version 0.10.0
- Added second flash color config entry to stop flashing
Version 0.9.0
- Added refueling fires, cooking
Version 0.8.0
- Added available amounts to resource requirement display
Version 0.7.0
- Switch warning text flashing from red to yellow (customizable)
Version 0.6.1
- Fixed refueling smelters
Version 0.6.0
- Added working with smelters, kilns, etc.
Version 0.5.1
- Fix for remote issues
Version 0.5.0
- Experimental attempt at updating containers open by others
Version 0.4.0
- Prevent taking from containers that are in use
Version 0.3.4
- Fix for error on creating container
Version 0.3.3
- Fix exception on player logging in
Version 0.3.2
- Removed ownership requirement
Version 0.3.1
- Fix for crafting chest
Version 0.3.0
- Added ability to build from containers
Version 0.2.0
- Fixed taking from inventory
Version 0.1.1
- Set default range to 10 vaguely understood units of measurement