Back to mods
Door Lock project artwork

CurseForge · Minecraft mod

Door Lock

A simple Minecraft Fabric mod to lock doors, trapdoors, fence gates & chests.

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

Quick answer

Which Door Lock release should I use?

Updated 2 years ago
Latest stable file door_lock-1.2-1.21.jar
Game version 1.21, 1.21.1
Loader Fabric

Door Lock door_lock-1.2-1.21.jar targets 1.21, 1.21.1 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

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

The project page does not say whether this file belongs on the client, dedicated server, or both.

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

The source does not explicitly classify this release as client-only or server-only.

What else does Door Lock door_lock-1.2-1.21.jar need?

door_lock-1.2-1.21.jar. 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 Lock without breaking your instance.

Built for Door Lock door_lock-1.2-1.21.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use door_lock-1.2-1.21.jar. It targets 1.21, 1.21.1 with Fabric; 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

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside door_lock-1.2-1.21.jar. It opens that exact file at the source.

About this project

What does Door Lock add?

Door Lock

Door Lock is a simple Minecraft Fabric mod to lock doors, trapdoors, fence gates & chests.

Version

Currently working on Minecraft 1.21! Because this is Fabric you will also need the Fabric API!

You are free to include this in a modpack.

How does it work?

This mod adds 3 keys to the game; a normal iron "Key", a "Golden Key", and a "Universal key"!

The "Key" & "Golden Key" are the same, but visually different, right click a lockable block with the key to lock the block. To open, right click with the correct key in hand, or use the universal key.

You can also lock iron block types, this will allow you to open iron doors/trapdoors with the correct key in hand. By default the Universal key will not work on iron types.

When a block is locked, any redstone interaction is disabled by default, but that can be toggled in the config.

To remove a lock sneak (shift) right click on the block with the correct key in hand or the universal key. Breaking the block will also remove the key.

Lockable blocks

Here's a list of the currently supported blocks a key can lock:

  • Doors
  • Trapdoors
  • Fence gates
  • Chests
  • Shulker boxes

Setting a password

Each key needs a unique password, you can add a password by renaming in an anvil and adding #password (Item Name #my_secret_password), as shown in the image below. (NOTE: taking the item out normally will remove the #password in the name, but shift clicking to take it will keep the full name!)

Screenshots

screenshot screenshot

Crafting

Here's how you craft the "Key":

screenshot

And here's how the "Golden key" is crafted:

screenshot

The "Universal key" is only obtainable from commands, or the creative inventory.

Mod Config

  • disable_block_break_when_locked=*false*|true: Stop block break event if block is locked.
  • disable_redstone_when_locked=false|*true*: Stop redstone inputs from interacting with a locked block.
  • universal_unlocks_iron=*false*|true: Use universal key to unlock iron types.
  • show_password_on_key=false|*true*: Show key password in item tooltip.

Mod Commands

  • /password {value}: Set a password on a key in the main hand.
  • /keys {amount}: Give a set of keys in bulk with unique passwords.

License

Door Lock is licensed under the CC0-1.0 license. Read more here.

Project description from CurseForge.

Pick your setup

Door Lock by Minecraft version and loader

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

2 available setups

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

Recent files

Door Lock versions and loaders

3 of 3 releases match

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