Valheim

File information

Last updated

Original upload

Created by

aedenthorn

Uploaded by

aedenthorn

Virus scan

Safe to use

Tags for this mod

About this mod

Lets you create lockable doors with their own keys.

Permissions and credits
Changelogs
Donations
Description

This mod gives you the option when building any kind of door to make it lockable.

To create a lockable door, simply hold down the modifier key (default left ctrl) when placing a door.

Lockable doors give a custom key when placed.

You can lock and unlock the door while having the key in inventory by holding down the modifier key (default left ctrl) while interacting with the door.

By default you will be prompted to enter a name for the door / key pair which will let you easily tell which key is for which door.

You can rename a door / key pair by holding down the rename modifier key (default left alt) while interacting with the door.

Locked doors can only be opened while holding a corresponding key in your inventory.


Notes

If a player doesn't have this mod installed, they will ignore the lock entirely and open the door normally, so the only way this works on public servers is if mod lists are enforced. I think there are mods that do that.


Config

A config file BepInEx/config/aedenthorn.LockableDoors.cfg is created after running the game once with this mod).

You can adjust the config values by editing this file using a text editor or in-game using the Config Manager.

To reload the config from the config file, type lockabledoors reset into the game's console (F5).


Technical

To install this mod, place the zip file contents in the BepInEx/plugins folder. You will need BepInEx.

Code is at https://github.com/aedenthorn/ValheimMods.

If you want to complain or ask for help or help me test my mods, you can visit my Discord server.

Click here for a list of all my mods for Valheim.