Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
CDEV RebindFavoriteKey
A rebindable key for the build menu's "add to favorites", which the game hard-codes to middle click. Its own row in Settings - Controls, bound and saved by the game itself. Client-only.
By CDEVx
| Last updated | 2 weeks ago |
| Total downloads | 52 |
| Total rating | 1 |
| Categories | Tweaks Client-side Utility |
| Dependency string | CDEVx-CDEV_RebindFavoriteKey-0.1.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
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.2350README
RebindFavoriteKey
A key of your own for "add to favorites" in the build menu. The game hard-codes that to the middle mouse button and offers nothing to change it — this gives it a real key binding, with its own row in the game's own Settings → Controls.
Point at a piece in the build menu, press the key, done.
Why it is not in the settings without a mod
The favorite action has no input name at all: the piece button subscribes its handler straight to the UI's middle-click event, which is dispatched by mouse button and nothing else. There is no binding to change — not in the settings, not in a config file, not in the registry. So the mod creates one.
What you get
- A real key binding named
CDEV_FavoritePiece, defaultF. - Its own row, Favorite piece (build menu), at the bottom of the left column in Settings → Controls. Rebinding, the bind dialog, the "this key is already used" warning and "Reset bindings" are all the vanilla ones, because the row is a vanilla row.
- The binding is saved by the game with all the others, so it survives restarts and updates of this mod.
- The middle mouse button keeps working — or does not, if you would rather have it back (setting below).
Installation
Client-only. Install BepInExPack Valheim
and drop CDEV.RebindFavoriteKey.dll into BepInEx/plugins/CDEV.RebindFavoriteKey/, or let a mod manager
do it. No Jötunn, no server, no other players needed — nothing is sent anywhere.
Settings — BepInEx/config/cdev.rebindfavoritekey.cfg
| Section | Key | Default | What it does |
|---|---|---|---|
| Keys | DefaultKey |
F |
The key the binding starts with. After you rebind it in the game, the game's saved binding wins and this does nothing. |
| Keys | MiddleClickFavorite |
true |
Keep the vanilla middle click as "add to favorites". Off frees the middle mouse button; the key keeps working. |
If you bind the key to the middle mouse button while MiddleClickFavorite is on, the mod stays out of the
way, so the favorite is not toggled twice on one press.
Compatibility
Valheim 1.0, BepInEx 5.4.23. It touches three things: the input table (one added button), the keyboard settings panel (one added row) and the build menu's own favorite call. Nothing else, and nothing in the world or in your character.
Credits
Written by CDEV. Bug reports with a slice of BepInEx/LogOutput.log are welcome.
Licence: MIT (the LICENSE file is in the package). Fork it, reuse it, keep it alive if I stop — a
mention of where it came from is all I ask.