Minecraft Data Packs / Game Mechanic

Door Locker (1.20+)

  • check_circle Advancements
  • check_circle Functions
  • check_circle Loot Tables
  • check_circle Predicates
  • check_circle Recipes
  • 9,881 views, 24 today
  • 1,161 downloads, 4 today
  • 20
  • 16
  • 18
Required Resource Pack
GalSergey's Avatar GalSergey
Level 43 : Master Engineer
22

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 (1.20+) Minecraft Data Pack)

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

Door Locker (1.20+) Minecraft Data Pack

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

Door Locker (1.20+) Minecraft Data Pack

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.
CompatibilityMinecraft 1.19
toMinecraft 1.20
Tags

3 Update Logs

Door Locker v1.5 : by GalSergey 12/25/2023 2:55:05 pmDec 25th, 2023

  • Added support for Minecraft 1.20.3
LOAD MORE LOGS

Create an account or sign in to comment.

1
01/06/2024 9:19 pm
Level 15 : Journeyman Crafter
TylerGamer28
TylerGamer28's Avatar
I'm having an issue. After I lock a door, I can still open it as usual without needing the password. Do you have a fix for this? P.S. This is an amazing datapack!
1
03/14/2024 2:37 am
Level 43 : Master Engineer
GalSergey
GalSergey's Avatar
This is how it should work. The owner can always open the door without a password. The password is only required for other players.
1
12/25/2023 4:45 pm
Level 1 : New Miner
Gabybo
Gabybo's Avatar
non capisco come chiudere le porte: le chicco col tasto dinistro[​con il rocket in mano] e fa della polvere. quando prendo lo "smeraldo magico" mi dice che non ha funzionato il door lock (1.20.2)
1
12/29/2023 5:28 pm
Level 43 : Master Engineer
GalSergey
GalSergey's Avatar
I have added support for Minecraft 1.20.2. You can download this version here: https://modrinth.com/datapack/door_locker/version/1.5.01
1
12/21/2023 9:12 amhistory
Level 1 : New Miner
Kawai
Kawai's Avatar
The message “Change doorlocker name” keeps popping up (I tried, 1.20.4)

eng bad sorry
1
10/10/2023 11:51 amhistory
Level 1 : New Miner
benino1227
benino1227's Avatar
in the 1.20 - 1.20.1 version when i lock a door with the passwort it gives it a blank passwort in chat and my passwort item does not work i can go without the passwort item




my englisch is bad sorry
1
10/21/2023 11:44 am
Level 43 : Master Engineer
GalSergey
GalSergey's Avatar
Do you use other datapacks?
1
08/12/2023 12:28 pmhistory
Level 1 : New Miner
Keinnett
Keinnett's Avatar
is there a version for mc 1.19? I only see version 1.19.4
1
08/23/2023 7:32 pm
Level 43 : Master Engineer
GalSergey
GalSergey's Avatar
Yes, here, but in this version the functionality is very limited. You can only lock doors and there are no animations.

modrinth.com/datapack/door_locker/version/fIJ38n7S
1
05/24/2023 6:41 am
Level 1 : New Miner
Keinnett
Keinnett's Avatar
Where can I find version for mc 1.19?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome