Minecraft Data Packs / Game Mechanic

Lockable Containers

  • check_circle Functions
  • 8,389 views, 3 today
  • 696 downloads, 0 today
  • 24
  • 27
  • 11
PvPqnda's Avatar PvPqnda
Level 57 : Grandmaster Engineer
100
Lock your chests to any password so your foes can't steal your items!

Created by: PvPqnda

For Minecraft 1.16+

Datapack Features:

• Enables any container to be locked with any password you desire!

• To lock a container, write "Lock" alone on the first page in a book and quill, and sign it to your desired password.
Then, drop your signed book on top of your container(s) to lock them!

• To open your newly locked container(s), rename any item to the same password you used to signed your locking book and open them while holding the renamed item!

• Containers include:
Chests, Trapped Chests, Barrels, Shulker Boxes, Furnaces, Smokers, Blast Furnaces, Dispensers, Droppers, Hoppers, Brewing Stands, and Beacons!

Survival & Multiplayer friendly


More datapacks on my website! PvPqnda.com
Join my Discord to know when something is released, updated, or to connect with me!
discord.gg/xS57622

If you'd like to further support me, my Patreon is where it's at! Also comes with exclusive posts/messages, voting power on what comes next, and access to new releases and updates as soon as they're ready! patreon.com/PvPqnda




Video Preview:

CompatibilityMinecraft 1.16
toMinecraft 1.19
Tags

Create an account or sign in to comment.

2
12/14/2021 10:46 amhistory
Level 1 : New Miner
9CHARA9
9CHARA9's Avatar
Can you add some features:

1. You need to SHIFT+RMB to lock a chest with a book. It would be better I guess than just throwing a book

2. Unlock chests with writing "Unlock" to the book and sign It with password to Unlock. If password Is wrong, then Chest won't be Unlocked, of course
1
11/24/2021 11:47 am
Level 1 : New Miner
Iam_Nix
Iam_Nix's Avatar
Great!!!
But I have few questions:
1. If someone else knows my password, can they open it?
2. Can I password multiple chests with different passwords?
3. If I don't want to lock another chest, what should I do?
4. Can locked chests be destroyed?
5. Can this datapack work in multiplayer world?
6. If I (or any of my friends) forget my password, can I use admin rights to unlock the chest?

I will be happy if you can answer me. Thanks!
1
11/25/2021 11:52 amhistory
Level 57 : Grandmaster Engineer
PvPqnda
PvPqnda's Avatar
Most of these questions can be answered by testing it on your own, buuuuut,

1. Yes, if you give them your "key" item that's renamed to the password, or if you tell them the password and they rename one of their own items to such.
2. Yes! You can make an assortment of "container locking books" each signed with different passwords, and use whichever one on whatever container you'd like!
3. If you don't want some of your containers to be locked, don't lock them! (though, this will leave them vulnerable to other players locking your containers to a password you don't know)
4. For the time being, but this may be changed in an update.
5. Yes, it's survival and multiplayer friendly.
6. If you forget the password and lose your "key" item that's renamed to the password, no cheats are necessary! You can just break the chest to reset its lock. Unless, however, you have my Shulker Chests datapack enabled as well. In which case, the chest will drop with your old lock still applied even after placing it back down. THEN you can put a hopper under the chest to take the items out, and just make a new chest :p
1
11/25/2021 8:21 pm
Level 1 : New Miner
Iam_Nix
Iam_Nix's Avatar
3. I mean if I locked a chest but then I want that chest to have no password, what should I do?
4. I want the locked chest to be indestructible.
6. If so, can strangers also break my locked chest to reset the password for my chest? I want a universal key that can open all chests without knowing the password (it can only be obtained by command).



Thanks for replying to me :3
1
11/26/2021 12:39 am
Level 57 : Grandmaster Engineer
PvPqnda
PvPqnda's Avatar
3. If you lock a container then no longer want it to be locked, breaking the chest will reset the lock.
4. It currently won't be, but I may update the datapack so it's truly a struggle to get items out of locked chests.
6. Yes, that's currently possible. However, a universal key unfortunately isn't.

You're welcome!
1
11/26/2021 7:19 am
Level 1 : New Miner
Iam_Nix
Iam_Nix's Avatar
6. Actually, this is the datapack that I like the most, but at this point I find it quite useless.
If I play in single player mode, locking a chest makes almost no sense.
If I play co-op, I lock the chest so that other people can't take my stuff, but they can break the lock very easily by smashing it. :<
1
11/26/2021 7:34 am
Level 1 : New Miner
Iam_Nix
Iam_Nix's Avatar
I have a private survival server for me and my friends to play. If I make a video, I will definitely put your information in the description :3
2
11/26/2021 7:32 am
Level 1 : New Miner
Iam_Nix
Iam_Nix's Avatar
In short: I would be happy if you could change this datapack a few things:

- Simple way to set password.
In my opinion: Grab a renamed item, sneak (shift key) and right click to lock the chest, do the same while holding an item of the same name to unlock it.
- The password can be removed but the chest needs to be opened (must know the password) + A locked chest cannot be broken.
In my opinion: It is possible to remove the password by breaking the chest, but the chest needs to be opened first before it can be broken.
- Add a universal key that can open any locked chest but can only be obtained by command. (used in case of forgetting password)

If you can change this datapack like that that would be great. I will give you 10 diamonds (my friends account) :3
3
11/21/2021 2:08 am
Level 1 : New Miner
User3913785G
User3913785G's Avatar
Really cool data pack, the only thing that would make it perfect would be the ability to make the locked container unbreakable or REALLY hard to get in to, great Data Pack regardless!!!
2
11/22/2021 6:13 pm
Level 57 : Grandmaster Engineer
PvPqnda
PvPqnda's Avatar
Yes! I plan on updating it so it's truly a struggle to get the items out of a locked container.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome