


Prefab Hammer is an advanced construction utility for Valheim. It allows players to capture custom build combinations (prefabs/blueprints) directly from their existing structures, name them, manage them in a catalog, and build them using standard resource calculations.
J to select them one-by-one with a pulsating green outline.K to open the solid-colored popup manager, name your creation, and save it.Delete or Shift + K.Shift + U to open the Undo History tab and remove recently placed blueprints. Materials are refunded by dropping them at the original piece locations./prefablist, /prefabsave, /prefabreload, and /prefabdelete.If you also have the MovingDay mod installed, they will automatically work together:
J: Toggle manual piece selection (must hold Hammer).K: Open save panel / Prefab Manager.Delete or Shift + K: Open Library Catalog directly.Shift + U: Open Undo History tab.Prefab Hammer requires BepInEx to run.
PrefabHammer.dll into the BepInEx/plugins/ directory (or download directly via r2modman).You can customize the mod's behavior by editing BepInEx/config/com.prefabhammer.cfg (or using the in-game Configuration Manager / r2modman's Config Editor).
BuildCategory: The build menu category tab where your custom prefabs are loaded (default: Prefab). Can be set to vanilla tabs like Misc, Crafting, Building, or Furniture.DefaultRadius: Capture radius in meters for the fallback area save (default: 5.0).All hotkeys use BepInEx's native click-to-bind system. In the in-game configuration manager, click the keybind button and press the key combination you want — no need to type key names.
SaveHotkey: Open the save panel (default: K).SelectHotkey: Toggle piece selection (default: J).ManagerHotkey: Open the Prefab Manager to the Library tab (default: Left Shift + K).UndoHotkey: Open the Prefab Manager to the Undo History tab (default: Left Shift + U).PlacementBatchSize: Number of pieces placed per frame during batched building (default: 10). Lower values reduce stuttering on slower hardware.MaxUndoHistory: How many recent placements are kept in the undo history (default: 5).Upgrading from v1.0.7 or earlier: Delete your old
com.prefabhammer.cfgfile to let BepInEx regenerate it with the new keybind format. The old string-based key entries are not compatible.