CDEV RebindFavoriteKey

v0.1.0·Updated 2026-09-24

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.

About this mod Author’s original text

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, default F.
  • 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.

Install & use Install: BepInEx plugin

  1. The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
  2. Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
  3. Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
  4. Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.

Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.

Dependencies

Install these first, or the mod will not work:

denikson-BepInExPack_Valheim

File & checksum

Filename
CDEV_RebindFavoriteKey-0.1.0.zip
File size
14.3 KiB