HomeJavaDatapacksDoor Locker
Door Locker
DatapacksJava

Door Locker

by GalSergey · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.20.2–1.21.8 · Data pack⬇ Download for 1.20–1.20.1 · Data pack⬇ Download for 1.19.4 · Data pack⬇ Download for 1.19–1.19.3 · Data pack⬇ Download for 1.20.3–1.20.4 · Fabric⬇ Download for 1.19–1.19.3 · Fabric⬇ Download for 1.20.3–1.20.4 · Forge⬇ Download for 1.19–1.19.3 · Forge⬇ Download for 1.20.3–1.20.4 · Quilt⬇ Download for 1.19–1.19.3 · Quilt
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

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:

loot give @s loot door_locker:door_locker
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.

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more