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

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

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

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.
How to Install Door Locker (Datapack)
Door Locker by GalSergey is verified for Datapack, Fabric, Forge, Neoforge, Quilt across Minecraft versions 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2 (latest release: 1.7.1, file size: 862 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2) and platform (Datapack, Fabric, Forge, Neoforge, Quilt).
- Make sure you have the compatible loader or environment installed for Datapack, Fabric, Forge, Neoforge, Quilt.
- Move the downloaded Door Locker file into your Minecraft
.minecraft/saves/<world>/datapacksfolder and launch the game.
All Versions
+ Add Version- Added support for 1.21.11 - 26.3
- Support for 26.3
- Support for 26.2
- Support for 1.21.11 - 26.1.2
- Support for 1.21.5 - 1.21.10
- Support for 1.21.4
- Support for 1.21.2 - 1.21.3
- Support for 1.21 - 1.21.1
- Support for 1.20.5 - 1.20.6
- Added support for 1.21.5 - 1.21.10
- Minor bug fixes
- Added support for versions 1.20.4 - 1.21.4.
- Added support for 1.20.2.
- Add support Minecrat 1.20.3
- Add support Minecrat 1.20.3
Most of the features from the new versions are missing. You can only lock doors.