You are viewing a potentially older version of this package. View all versions.
ValheimMods-LockableDoors-0.6.1 icon

LockableDoors

Lock doors with craftable keys. Create a lockable door on placement, get matching keys, and lock/unlock or rename it in game. Based on aedenthorn's LockableDoors.

Date uploaded 2 days ago
Version 0.6.1
Download link ValheimMods-LockableDoors-0.6.1.zip
Downloads 17
Dependency string ValheimMods-LockableDoors-0.6.1

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2333 icon
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.2333

README

LockableDoors

Lock doors so only players holding a matching key can open them.

Usage

  • Create a lockable door: hold the lock modifier key (default left ctrl) while placing a door. A matching door key (or several, configurable) drops at your feet.
  • Lock / unlock: hold the lock modifier key (default left ctrl) and interact with the door while carrying its key.
  • Rename: hold the rename modifier key (default left alt) and interact with the door while carrying its key. The door and key names update everywhere (hover text, tooltips, pickup messages).
  • Players without the key cannot open a locked door. Optionally (config) a key can also be required to close it.

Configuration

All options are editable via the BepInEx config file (aedenthorn.LockableDoors.cfg) or an in-game configuration manager: modifier keys, number of duplicate keys, display strings, and more.

Type lockabledoors reset in the console (requires -console) to reload the config from disk.

Credits

Original mod by aedenthorn; maintained fork by Blake Pierantoni. License preserved from the original project.

Source

https://github.com/BlakePierantoni/Valheim-Mods

CHANGELOG

Changelog

0.6.3

Craftable and copyable keys — the listing finally does what the description promised.

  • Blank door keys can now be crafted at the forge (default cost 1 Bronze; recipe, station, and station level are all configurable).
  • Copy a key: hold the copy modifier (default B) and interact with a locked door while carrying its key — a blank key in your inventory becomes a bound copy.
  • Blank keys show their own name and a tooltip explaining how to bind them.
  • Keys no longer stack, preventing keys for different doors from merging.

0.6.2

Compatibility fix — LockableDoors works on the current version of Valheim again.

  • Restored all door interactions: creating a lockable door, spawning its keys, and locking/unlocking had stopped working after recent Valheim updates.
  • Updated the door-placement hook to Valheim's renamed TryPlacePiece method.
  • Fixed the key tooltip patch for Valheim's new GetTooltip method signature.
  • Made patch registration resilient so a single future game change can no longer disable the whole mod.

0.6.1

  • Maintenance release: bug fixes, Harmony patch cleanup, and multiplayer lock-state sync handling.
  • First release published under the ValheimMods namespace.