Back to mods
Door Locker project artwork

Modrinth · Minecraft mod

Door Locker

Adds the ability to lock doors, trapdoors, fance gates, levers and buttons. You can also make animated doors.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Door Locker release should I use?

Updated 3 days ago
Latest stable file 1.7.1
Game version 1.20.2, 23w40a, 23w41a
Loader datapack

Door Locker 1.7.1 targets 1.20.2, 23w40a, 23w41a with datapack. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is Door Locker required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release datapack
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Door Locker 1.7.1 need?

1.7.1. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Door Locker without breaking your instance.

Built for Door Locker 1.7.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.7.1. It targets 1.20.2, 23w40a, 23w41a with datapack; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.7.1. It opens that exact file at the source.

About this project

What does Door Locker add?

Description

This datapack adds the ability lock doors, trapdoors, fance gates, levers and buttons.
You can also make animated doors.

Recipes

Door Locker

Door Locker recipe

Sets the password for supported blocks. Before use, you must rename on the anvil. Must be applied on the inside of the block.

The locker owner can always open their locks without a password!

Tip: If you remove the name (just set the name as a space) then Door Locker will not have a password, which is good for double doors if you don't need a password.

Animated Door

enter image description here

Turns a locked door into an animated version of the door. Doesn't change password. After that, the door cannot be opened / closed using redstone or villagers.

Works for doors only.

Delocker

enter image description here

Allows the owner of the lock to completely remove the lock from the block. Door Locker will not be returned. When removing a lock from an animated door, the doors will be dropped as items.

For mapmakers

You can use this datapack in your project, just provide a link to this page in credits.

You can use any item with custom text in the item name as a key.

You can get Door Locker with key name in two ways:

  • Take your key to the door in your main hand and run this command in chat:
loot give @s loot door_locker:door_locker
  • Take your key in the second hand, and Door Locker in the main hand, then run this command in chat:
item modify entity @s weapon door_locker:copy_name

Also available such modifiers for keys:

Make the key one-time use:

item modify entity @s weapon door_locker:melt

Remove password for Door Locker:

item modify entity @s weapon door_locker:unlock

Remove password for Door Locker but without sounds and particles:

item modify entity @s weapon door_locker:unlock/no_sound

You can apply multiple modifiers to keys. The modifier will only work if the password matches. Door Locker checks only iten Name and does not check ID, Lore and any other data.

Project description from Modrinth.

Pick your setup

Door Locker by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

186 available setups

Showing the newest 12 of 92 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Door Locker versions and loaders

18 of 18 releases match

Looking for an older file? The official Modrinth project page is in Resources.