Skip to content

适用于 Minecraft 1.21.1, 1.19.2 的 Door Locker 数据包

添加锁住门、活板门、栅栏门、拉杆和按钮的功能。你还可以制作动画门。

次浏览
36 次浏览
已更新
已更新 17.10.2026

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.

如何安装 Door Locker

With Millida Launcher

  1. Install Millida Launcher

    The launcher is free: download it at millida.net/launcher and sign in with any nickname.

  2. Click “Install” on this page

    The launcher opens and installs the data pack for Minecraft 1.19–26.3 automatically.

  3. Launch the game

    A profile with it appears in the launcher: click “Play”.

Manually

  1. Download the archive

    Pick the file Door Locker 1.7.1.zip (862 KB) for your game version.

  2. New world: “Data Packs”

    When creating a world, click “Data Packs”, drag the archive into the window, then move it to “Selected”.

  3. Existing world: the datapacks folder

    Put the archive into saves/<world>/datapacks and type /reload in game.

On a server

  1. Archive goes into the server world’s datapacks

    The world/datapacks folder on the server; players do not need to install anything.

  2. Reload the data

    Type /reload in the server console or restart the server.

  3. Use the “To server” button

    On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.

版本

含依赖项

Minecraft加载器文件日期操作
26.3数据包26.3862 KB
1.21.8数据包1.21.8924 KB
1.21.4数据包1.21.4910 KB
1.20.2数据包1.20.2309 KB
1.20.4数据包1.20.4309 KB
1.19.2数据包1.19.219.9 KB

运行所需

  • Dependency可选

评价

成为第一个评价 Door Locker 的人

评论 0

登录后即可评论登录

相似数据包

全部数据包

了解更多

作者: GalSergey许可证: GPL-3.0-only

您是作者吗? 联系我们 —— 我们将在 48 小时内下架。