We recommend using the Thunderstore Mod Manager or an alternative for installing mods
THIS MOD WAS NOT CREATED BY ME & IS FROM NEXUS MODS ORIGINALLY
NEXUS LINK: https://www.nexusmods.com/valheim/mods/1346
NAME: Lockable Doors
CREATED BY: aedenthorn
LAST UPDATED: 28 October 2021
DESCRIPTION: Lets you create lockable doors with their own keys.
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.
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.
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).
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.