HammerHotkeys

版本 v1.0.0·更新於 2026-09-28

Bind keys to build pieces and stations: press a key to equip the hammer and select the piece instantly, without opening the build menu.

模組介紹 作者原文

Disclaimer:

Most of mods I work with are some old and outdated ones that their authors haven't updated so far to match 1.0. I am not a professional modder myself, but I am good with coding and gaming. If you experience any problems with the mods I published, you can find me in Hexium discord server by typing DMT.

HammerHotkeys

A Valheim mod that binds keys to build pieces and stations. Press a key and the hammer is equipped and the bound piece is selected for you - the placement ghost appears immediately, without opening the build menu. Especially useful for emergency situations, when you urgently need to place a workbench to start raising ground to save yourself from wolves or fulings, or when you need to quickly place a portal, then escape back to the base.

Client-side only. Works in single player and multiplayer, no server install needed.

Features

Key = Piece Binds

Configure as many binds as you like in one setting:

F6=Workbench;F7=Portal;F8=Stonecutter

Pressing a key equips the tool that contains the piece (preferring the hammer) and selects the piece, exactly like clicking it in the build menu.

Piece Name Matching

The piece name is matched case-insensitively against:

  • the prefab name (e.g. Workbench, Portal)
  • the localization key (e.g. piece_chestwood)
  • the English display name (e.g. Chest)

So Chest resolves to the wooden chest, while Reinforced Chest matches the iron one.

Availability Check

By default the mod follows the vanilla rule: pieces you have not unlocked yet are refused with a message instead of being selected. This can be disabled.

Feedback

Plays the vanilla selection sound and shows a center screen message (both optional). The build menu is left closed, but if you had it open it is closed after the selection - same as clicking a piece in the vanilla menu.

Configuration

| Setting | Default | Description |

|---------|---------|-------------|

| Binds | F6=Workbench;F7=Portal;F8=Stonecutter | Key=Piece pairs separated by; |

| Auto Equip Hammer | true | Equip the tool holding the piece if it is not already held |

| Require Available | true | Only select pieces that are currently unlocked |

| Play Sound | true | Play the vanilla selection sound |

| Show Messages | true | Show center screen messages |

| Open Build Menu On Select | false | Open the build menu after selecting instead of closing it |

Config file: BepInEx/config/DMT.HammerHotkeys.cfg

Useful Piece Names

| Station / piece | Name to use |

|-----------------|-------------|

| Workbench | Workbench |

| Forge | Forge |

| Stonecutter | Stonecutter |

| Smelter | Smelter |

| Charcoal Kiln | CharcoalKiln |

| Artisan Table | ArtisanTable |

| Black Forge | BlackForge |

| Galdr Table | GaldrTable |

| Portal | Portal |

| Wooden chest | Chest |

| Reinforced chest | Reinforced Chest |

Any other hammer piece works the same way - use its prefab name, $piece_... key, or English name. Unknown names are logged to BepInEx/LogOutput.log.

Installation

  • Install BepInEx
  • Extract HammerHotkeys.dll into BepInEx/plugins/HammerHotkeys/
  • Launch the game once to generate BepInEx/config/DMT.HammerHotkeys.cfg
  • Edit the Binds setting to your preferred keys

Compatibility

  • Client-side only - other players do not need the mod
  • No conflicts with building mods expected: it drives the vanilla selection path (Player.SetSelectedPiece)
  • Uses the legacy input API (Input.GetKeyDown), same as other maintained hotkey mods

Credits

  • Built by DaiMinhTri

Buy Me a Coffee

If you enjoy this mod, consider buying me a coffee:

Changelog

See CHANGELOG.md

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
HammerHotkeys-1.0.0.zip
檔案大小
10.6 KiB
SHA-256
a5d620efe9a7f9a76d1cc47e75306c59e735cff71cfa0c1cdae28d59a334171b
入庫時間
2026-10-10 18:19