Valheim
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
yesterday
Downloads
21
Size
61KB
ADDatHost Valheim hosting
€1

Capes Precision Drop

Stop tossing things. Place items from your inventory exactly where you want them.

Drop seeds right next to your chickens, berries in front of a boar you're taming, or food inside a lox pen, without it bouncing off somewhere else. Place mode gives you a build-style preview of the item, and your normal build controls to aim, rotate, and place it.

Features

  • Build-style placement: a preview of the item and the build marker follow your crosshair, with the same aiming and range as the hammer.
  • Your own controls: place, rotate, and cancel use your build controls, including any changes you've made in Valheim's Controls menu.
  • Toggle, not hold: turn place mode on once and place as many items as you like, then turn it off.
  • Controller support: set your controller button or combination just by pressing it.
  • Clear status: an on-screen "Precision Drop: ON" label, which you can move, resize, or turn off.
  • Vanilla by default: with place mode off, dropping works exactly like the base game.
  • Client-side: only you need it installed. It works on servers and with friends who don't have it.

Setup

Nothing is bound by default, so pick a key or button after installing. Until you do, opening your inventory shows a reminder.

Keyboard: press F1 in game, find Capes Precision Drop, and set PlaceKey.

Controller: press F1, tick RecordPlaceButton, then press and hold your button or combination on the controller and let go. It saves automatically. Esc or waiting 10 seconds cancels. A combination, like holding a bumper and pressing another button, avoids clashing with the buttons' normal actions.

The F1 menu needs a config manager mod, such as BepInEx ConfigurationManager. You can also edit BepInEx/config/th3cap3.valheim.capesprecisiondrop.cfg directly, for example PlaceKey = LeftAlt.

How to use

  1. Open your inventory and press your place key or button. "Precision Drop: ON" appears.
  2. Drop an item the normal way: drag it outside the inventory, or use your controller's drop button.
  3. The inventory closes and a preview of the item follows your crosshair.
  4. Use your build controls:
Action Keyboard and mouse (default) Controller
Place Left click, or your place key Your build "place" button, or your place button
Rotate Mouse wheel Your build rotate controls
Cancel Middle click (build "remove"), or Esc Your build "remove" button

Place mode stays on until you press the key again with the inventory open, so you can place several items in a row.

Settings

Setting Default What it does
Keyboard > PlaceKey none Toggles place mode (with the inventory open)
Controller > PlaceButton none Controller button or combination, e.g. JoyLBumper + JoyButtonY
Controller > RecordPlaceButton off Tick it to set PlaceButton by pressing it
General > ShowIndicator on Shows the on-screen label while place mode is on
General > IndicatorX / IndicatorY 0.5 / 0.07 Label position: 0 is left/top, 1 is right/bottom
General > IndicatorSize 20 Label text size

Good to know

  • Placed items are still normal dropped items. They can tip over or roll on slopes, and animals eat them as usual.
  • Only items from your own inventory can be placed, not from chests.
  • SeneaL UI: with SeneaL UI enabled, the F1 menu doesn't register key presses when setting a key. Set it in the config file instead, or disable SeneaL UI, set the key, and turn it back on.

For mod authors

UI mods can show their own place mode indicator and hide this one, through CapesPrecisionDrop.PrecisionDropAPI:

Member What it does
IsPlaceModeOn true while place mode is on (including while aiming)
IsPlacing true while the player is aiming a placement
HideBuiltInIndicator(yourGuid) Hides the built-in label
ShowBuiltInIndicator(yourGuid) Undoes your hide request
IsBuiltInIndicatorHidden true while any mod is hiding the label
PluginGuid "th3cap3.valheim.capesprecisiondrop"

These names are stable. Everything else in the mod is internal and may change.

With a hard dependency, reference CapesPrecisionDrop.dll and add [BepInDependency("th3cap3.valheim.capesprecisiondrop")]. Without one, check BepInEx.Bootstrap.Chainloader.PluginInfos for the GUID and use reflection:

var api = System.Type.GetType("CapesPrecisionDrop.PrecisionDropAPI, CapesPrecisionDrop");
bool on = (bool)api.GetProperty("IsPlaceModeOn").GetValue(null);
api.GetMethod("HideBuiltInIndicator").Invoke(null, new object[] { MyPlugin.GUID });

Author

Made by Th3Cap3. Found a bug or have an idea? Let me know on the mod's page.

DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro
DatHost — Valheim server hosting, first month for one euro