SirJose-OmniTool icon

OmniTool

Craftable multi-tool: hammer building, chest-to-chest and preset (Advanced) transfer, inventory assistant, workbench-area repair and remote destroy. Install on every player and the server.

By SirJose
Last updated a week ago
Total downloads 159
Total rating 0 
Categories Mods Tweaks Tools Client-side Utility AI Generated Deep North Update
Dependency string SirJose-OmniTool-1.12.4
Dependants 0 other packages depend on this package

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

Omni Tool 1.12.4

A craftable tool (Workbench: 10 Wood, 1 Stone) inspired by ARK's Omni-tool. Hold it and middle-click to open the mode menu: click a mode to pick it, use the < > arrows, or close it with X, Esc or middle-click. The right side of the menu explains each mode and has its options (auto-run, confirm destroy).

Mode Left-click Right-click
Build place a piece (works like the hammer; tap middle-click removes, hold it for the menu) build menu
Transfer aim at a chest: move everything from the source into it (hold Left Shift: only matching items). Aim at nothing: run the active preset aim at a chest: pick it as source. Aim at nothing: open Advanced Transfer
Inventory Assistant open your inventory with the rules panel run the rules now
Repair repair every damaged piece in this workbench's area repair the piece you aim at
Destroy destroy the piece you aim at (click twice to confirm), full refund like the hammer –

Advanced Transfer (ARK style): save presets that move items from sources to targets.

  1. Sources - your inventory (hotbar can be left alone) and/or nearby storages: "Everything nearby", ticked one by one, or "every storage named ..."
  2. Items - (click a highlighted item to leave it out of its category; the category then shows a dimmed tick and -N) everything, whole categories (Materials, Ores, Metals, Wood, Stone, Hides & Leather, Valuables, Food, Meats, Fish, Forage (crops + wild), Meals, Meads & Potions, Farm, Magic, Trophies, Weapons, Armor, Ammo, Tools, Other) or single items
  3. Targets - storages and stations (smelters, kilns, furnaces, windmills...: ore and fuel go in up to their limit), ticked or by name
  4. Save / Run now. "Aa" renames a preset; "-" twice deletes it. The selected preset is the one left-click runs.

Items go into targets that already hold that item first. Storages are found within 80 m (AdvancedTransfer.Range). Transfers only work inside workbench areas, only on player-built storage, and never take items out of personal chests (see [Transfer] in the config). Storage names come from the chest's custom name - the one My Little UI's Alt+E rename sets, which the Omni Tool's Rename button now sets too - then other rename mods, then the normal name (signs are not used). The list shows where each name came from: (renamed) or (other mod). Presets are saved outside the r2modman profile, in %USERPROFILE%\AppData\LocalLow\IronGate\Valheim\BurksOmniTool\presets.txt (with presets.backup.txt), so mod updates and profile changes can't remove them.

Groups: make a group under the presets list and drag presets onto it (or open the group and press + on a preset). A group runs its presets from top to bottom; reorder them with Up/Dn. Select a group and left-click empty space in Transfer mode to run the whole group.

Sharing presets: in the Advanced Transfer window, Make a copy (+presets) crafts a second Omni Tool (same cost as the recipe) with all your presets stored on the item. Give it to another player; they hold it, open Advanced Transfer and press Load ... from tool to add them to their list (this also happens by itself when they open the window).

Backup: every time presets are saved, the tool in your hand stores a copy. That copy is saved with your character, so if a new r2modman profile starts with no presets, just open Advanced Transfer while holding your tool and they come back.

Repair and Destroy need a workbench. You must stand within a workbench's range, and the tool only reaches pieces inside that workbench's build radius. Wards, no-build zones and "missing station" rules apply just like the hammer.

Inventory Assistant: pick items from your inventory, set how many to keep, and choose Drop or Destroy for the rest. Equipped items are never touched. Optional auto-run after pickup (while the tool is in your inventory) only does Destroy rules unless you turn on AutoApplyDropsToo.

It adds a new item, so every player and the server need it.

Settings: BepInEx/config/com.burks.omnitool.cfg (menu on/off and size, reach, modes on/off, workbench name, destroy confirmation, optional switch-mode key, assistant rules).

Model

If the model sits wrong in your hand, tune it in the console (F5): omnitool_pose held rx ry rz scale ox oy oz, or omnitool_pose ground .... Set UseCustomModel = false for the hammer look.

In Build mode a quick middle-click removes a piece like the hammer; hold middle-click (0.4 s) to open the menu (or Left Alt + middle-click).

On a gamepad, or with MiddleClickOpensMenu = false, middle-click just switches to the next mode.

Logging

Every transfer, preset run and Inventory Assistant action is written to the BepInEx log ([Transfer], [Preset], [Assistant]), with item counts before and after. If the totals ever don't add up, a COUNT MISMATCH warning is logged.

Quick Stack - Store - Sort - Trash - Restock: items and slots you favorited there (blue/yellow outline) are never taken from your inventory by presets or the Inventory Assistant (LeaveQuickStackFavorites).