You are viewing a potentially older version of this package. View all versions.
Azumatt-AzuCraftyBoxes-1.0.2 icon

AzuCraftyBoxes

AzuCraftyBoxes is a Valheim mod that allows players to access and use resources from nearby containers when crafting and building, based on a configurable range and item restrictions. Restrictions are controlled by the yaml file Azumatt.AzuCraftyBoxes.yml

Date uploaded a year ago
Version 1.0.2
Download link Azumatt-AzuCraftyBoxes-1.0.2.zip
Downloads 3280
Dependency string Azumatt-AzuCraftyBoxes-1.0.2

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

AzuCraftyBoxes

AzuCraftyBoxes is a Valheim mod that allows players to access and use resources from nearby containers when crafting and building, based on a configurable range and item restrictions.

Features

  • Automatically use resources from nearby containers within a configurable range when crafting or building
  • Restrict specific items from being pulled out of containers by defining rules in the configuration file in the BepInEx/config folder called Azumatt.AzuCraftyBoxes.yml
  • Toggle the mod on/off in-game using a configurable hotkey
  • Flashing UI text to indicate when resources are being pulled from nearby containers

Version checks with itself. If installed on the server, it will kick clients who do not have it installed.

This mod uses ServerSync, if installed on the server and all clients, it will sync all configs with [Synced with Server] tags to client

This mod uses a file watcher. If the configuration file is not changed with BepInEx Configuration manager, but changed in the file directly on the server, upon file save, it will sync the changes to all clients.

Configuration Options

General

Configuration File Name: Azumatt.AzuCraftyBoxes.cfg

1 - General

Lock Configuration [Synced with Server]

  • If on, the configuration is locked and can be changed by server admins only.
    • Default Value: On

Mod Enabled [Synced with Server]

  • If off, everything in the mod will not run. This is useful if you want to disable the mod without uninstalling it.
    • Default Value: On

2 - CraftyBoxes

Container Range [Synced with Server]

  • The maximum range from which to pull items from.
    • Default Value: 20

ResourceCostString [Not Synced with Server]

  • String used to show required and available resources. {0} is replaced by how much is available, and {1} is replaced by how much is required. Set to nothing to leave it as default.
    • Default Value: {0}/{1}

FlashColor [Not Synced with Server]

  • Resource amounts will flash to this colour when coming from containers
    • Default Value: FFEB04FF

UnFlashColor [Not Synced with Server]

  • Resource amounts will flash from this colour when coming from containers (set both colors to the same color for no flashing)
    • Default Value: FFFFFFFF

PulledMessage [Not Synced with Server]

  • Message to show after pulling items to player inventory
    • Default Value: Pulled items to inventory

3 - Keys

PullItemsKey [Not Synced with Server]

Installation Instructions

Manual Installation

Note: (Manual installation is likely how you have to do this on a server, make sure BepInEx is installed on the server correctly)

  1. Download the latest release of BepInEx.
  2. Extract the contents of the zip file to your game's root folder.
  3. Download the latest release of AzuCraftyBoxes from Thunderstore.io.
  4. Extract the contents of the zip file to the BepInEx/plugins folder.
  5. Launch the game.

Installation through r2modman or Thunderstore Mod Manager

  1. Install r2modman or Thunderstore Mod Manager.

    For r2modman, you can also install it through the Thunderstore site.

    For Thunderstore Mod Manager, you can also install it through the Overwolf app store

  2. Open the Mod Manager and search for "AzuCraftyBoxes" under the Online tab. Note: You can also search for "Azumatt" to find all my mods. The image below shows VikingShip as an example, but it was easier to reuse the image. Type AzuCraftyBoxes.

3. Click the Download button to install the mod. 4. Launch the game.

Example YAML
# Below you can find example groups. Groups are used to exclude or includeOverride quickly. They are reusable lists! 
#Please note that some of these groups/container limitations are kinda pointless but are here for example.
# Make sure to follow the format of the example below. If you have any questions, please ask in my discord.

# Full vanilla prefab name list: https://valheim-modding.github.io/Jotunn/data/prefabs/prefab-list.html
# Item prefab name list: https://valheim-modding.github.io/Jotunn/data/objects/item-list.html

groups:
Swords: # Group name
  - SwordBlackmetal # Item prefab name, note that this is case sensitive and must be the prefab name
  - SwordBronze
  - SwordIron
  - SwordMistwalker
  - THSwordKrom
  - SwordCheat
  - SwordIronFire
  - SwordSilver
Armor:
  - ArmorBronzeChest
  - ArmorBronzeLegs
  - ArmorCarapaceChest
  - ArmorCarapaceLegs
  - ArmorFenringChest
  - ArmorFenringLegs
  - ArmorIronChest
  - ArmorIronLegs
  - ArmorLeatherChest
  - ArmorLeatherLegs
  - ArmorMageChest
  - ArmorMageLegs
  - ArmorPaddedCuirass
  - ArmorPaddedGreaves
  - ArmorRagsChest
  - ArmorRagsLegs
  - ArmorRootChest
  - ArmorRootLegs
  - ArmorTrollLeatherChest
  - ArmorTrollLeatherLegs
  - ArmorWolfChest
  - ArmorWolfLegs
Food:
  - BarleyWine
  - BlackSoup
  - BloodPudding
  - Blueberries
  - BoarJerky
  - Bread
  - Carrot
  - CarrotSoup
  - Cloudberry
  - CookedBugMeat
  - CookedChickenMeat
  - CookedDeerMeat
  - CookedEgg
  - CookedHareMeat
  - CookedLoxMeat
  - CookedMeat
  - CookedWolfMeat
  - DeerStew
  - Eyescream
  - FishAndBread
  - FishCooked
  - FishWraps
  - HealthUpgrade_Bonemass
  - HealthUpgrade_GDKing
  - Honey
  - HoneyGlazedChicken
  - LoxPie
  - MagicallyStuffedShroom
  - MeadEitrMinor
  - MeadFrostResist
  - MeadHealthMajor
  - MeadHealthMedium
  - MeadHealthMinor
  - MeadPoisonResist
  - MeadStaminaLingering
  - MeadStaminaMedium
  - MeadStaminaMinor
  - MeadTasty
  - MeatPlatter
  - MinceMeatSauce
  - MisthareSupreme
  - Mushroom
  - MushroomBlue
  - MushroomJotunPuffs
  - MushroomMagecap
  - MushroomOmelette
  - MushroomYellow
  - NeckTailGrilled
  - Onion
  - OnionSoup
  - Pukeberries
  - QueensJam
  - Raspberry
  - RottenMeat
  - RoyalJelly
  - Salad
  - Sausages
  - SeekerAspic
  - SerpentMeatCooked
  - SerpentStew
  - ShocklateSmoothie
  - StaminaUpgrade_Greydwarf
  - StaminaUpgrade_Troll
  - StaminaUpgrade_Wraith
  - TurnipStew
  - WolfJerky
  - WolfMeatSkewer
  - YggdrasilPorridge
Arrows:
  - ArrowBronze
  - ArrowCarapace
  - ArrowFire
  - ArrowFlint
  - ArrowFrost
  - ArrowIron
  - ArrowNeedle
  - ArrowObsidian
  - ArrowPoison
  - ArrowSilver
  - ArrowWood
  - draugr_arrow
Ores:
  - CopperOre
  - IronOre
  - SilverOre
  - TinOre
  - FlametalOre
Scraps:
  - BlackMetalScrap
  - BronzeScrap
  - CopperScrap
  - IronScrap
  - LeatherScraps
Tier 2 Items:
  - Bronze
  - PickaxeBronze
  - ArmorBronzeChest
  - ArmorBrozeLeggings
Bows:
  - Bow
  - BowDraugrFang
  - BowFineWood
  - BowHuntsman
  - BowSpineSnap
  - CrossbowArbalest


# By default, if you don't specify a container below, it will be considered as you want to allow pulling all objects for pulling from it.
# If you are having issues with a container, please make sure you have the full prefab name of the container. Additionally, make sure you have exclude or includeOverride set up correctly.
# Worst case you can define a container like this. This will allow everything to be pulled from the container.
# rk_barrel:
#  includeOverride:
#    -

piece_chest:
exclude: # Exclude these items from being able to be pulled from the container
  - Food # Exclude Group
  - PickaxeBronze # Allow prefab names as well, in this case we will use something that isn't a food

piece_chest_wood:
exclude:
  - Swords # Exclude all in group
  - Tier 2 Items # Exclude all in group
  - Bows # Exclude all in group
includeOverride: # If the item is in the groups above, say, you were using a predefined group but want to override just one item to be ignored and allow pulling it
  - BowFineWood
  - Wood

piece_chest_private:
exclude:
  - Swords
  - Tier 2 Items
  - Bows
includeOverride:
  - BowHuntsman

piece_chest_blackmetal:
exclude:
  - Swords # Exclude all in group
  - Tier 2 Items # Exclude all in group
  - Bows # Exclude all in group
includeOverride: # If the item is in the groups above, say, you were using a predefined group but want to override just one item to be ignored and allow pulling it
  - BowFineWood
  - Wood

rk_cabinet:
exclude:
  - Food

rk_cabinet2:
exclude:
  - Food

rk_barrel:
exclude:
  - Armor
  - Swords

rk_barrel2:
exclude:
  - Armor
  - Swords

rk_crate:
exclude:
  - Armor
  - Swords

rk_crate2:
exclude:
  - Armor
  - Swords

Feel free to reach out to me on discord if you need manual download assistance.

Author Information

Azumatt

DISCORD: Azumatt#2625

STEAM: https://steamcommunity.com/id/azumatt/

For Questions or Comments, find me in the Odin Plus Team Discord or in mine:

https://i.imgur.com/XXP6HCU.png

CHANGELOG

Version Update Notes
1.2.9 - Forgot to update the descriptions of the new configuration options.
1.2.8 - Fix the flicker on the Build Info panel.
- Fix compatiblity when using AzuMiscPatches alongside this (that causes the flicker). This mod will take priority over the display.
- Add two new configurations for the color display of the amount you can build.
1.2.7 - Range limit KG ItemDrawers so you can't pull from them when outside range.
1.2.6 - Add incompatiblity with other Craft from Container type of mods. People are double installing mods with the same functionality and it makes things cost double the resources.
1.2.5 - Accept PR from KG to support his new ItemDrawers since they do not use vanilla Container components.
1.2.4 - Update for latest Valheim changes.
1.2.3 - Add back my normal filtering since AdventureBackpacks now adds a mock creator.
1.2.2 - Add compatibility with AdventureBackpacks. Since the container didn't have a creator, I had to make an exception for it. Typically the only containers without a creator are world containers, so it was skipped. Happy Crafting.
- Will probably look into making it compatible with Smoothbrain's Backpack mod soon, if it wasn't already.
1.2.1 - Remove the PullToInventory feature as this allows item duplication. This bug isn't an easy one to fix as it requires a server, multiple people (I usually test alone as no one really has the patience) and a decent amount of time. Currently, I am low on time until mid year 2024. If I manage to find a fix, it will be updated to be included again. Sorry for the inconvenience but I hope this at least stops the exploiting for now.
- If you just read that an think that it will take me until mid year 2024 to update, you're incorrect and worried for nothing. Low on time doesn't mean no time, just means my usual super fast updates aren't so super fast anymore :D
1.2.0 - Hildir Update. Not sure why? Hell, might not fix it for everyone.
- Also, change the version check to be hash check.
1.1.9 - Small temp bug workaround. Will properly fix later.
1.1.8 - Localization and other bug fixes
1.1.7 - Updates for Valheim 0.216.9.
- Bug fixes for duplication issue and a few others that were reported.
1.0.7 - Turns out, some mods just don't populate all expected things on ItemDrops. Added in more null checks and even fix some mod's issues related to the ItemDrop script. Should fix 99% of all issues with mod compatibility.
1.0.6 - Update Example.yml file to include the super awesome new features. Add a ton of comments to make even the dumbest of monkeys hopefully understand. Not that you're dumb, just saying...it's stupid simple.
- It is highly recommended that you regenerate your yml file and reconfigure it!
- You can now limit what goes into smelters, kilns, fireplaces, and cooking stations. Hopfully I didn't fuck up and the Example.yml is how everyone likes it by default.
- Hope you enjoy this update.
1.0.5 - All is normal. FPS issue fixed. Rest easy.
- Issue is caused by Therize's fancy Armory. You're never too fancy that I can't fix it.
- Special thank you to the few who rapidly tested my dlls. Zaphonia, SchwarzFenrir, and HunterAP. You're appreciated.
1.0.4 - Hotfix to attempt to reduce some lag added from the last patch. Hopefully this helps.
1.0.3 - Add quick fueling via hotkey (LeftShift + E by default) for cooking stations, fireplaces, smelters and kilns.
- Fix some errors that people can experience when using mods that do not populate the ItemDrop script appropriately based on what vanilla expects.
1.0.2 - Fix some NREs that can happen when WardIsLove is installed and you are loading into your world.
- Additionally, make pulling resources into your inventory work when building with the hammer.
- Note: Not all of the features from OdinsCraftyBoxes are in this mod yet. I am rewriting some of the patches to work better and be more performant. Bear with me.
1.0.1 - Fix some NREs
1.0.0 - Initial Release