Key (Lock Chests)

  • check_circle Advancements
  • check_circle Functions
  • check_circle Recipes
  • 12
  • 10
  • 22
avatar CMD-Golem
Level 43 : Master Engineer
46
Lock your Chest to protect your Items from other Players and Creepers.
If something breaks the Chest it will replace itself without any drop.
Even Hoppers underneath the Chest won't soak up your items. But be aware, if you put items with a hopper into a locked Chest , they will be lost.



Crafting

The Crafting Table will show a Gold Nugget as result, but you will get the correct Item after you take it out.





Settings
Show Messages in the Chat instead of above the Hotbar, to disable it again you need to execute the same Command except of the 1 replace with a 0.
/scoreboard players set #message chestlock 1
To unlock a chest manually you need to stand on top of the chest ideally in the middle and execute this command. If the Chest is a double Chest you need to execute the command for both sides.
/execute align xyz positioned ~0.5 ~ ~0.5 run function chest_lock:actions/unlock



Installation Guide

If you have Questions or you discovered a bug, please write a Comment below.
CompatibilityMinecraft 1.15
toMinecraft 1.16 Snapshot
Tags

1 Update Logs

v1.1 : 05/25/2020 2:18:03 pmMay 25th

If chest breaks it will be replaced with correct facing
bug fixing

1
05/25/2020 8:40 pm
Level 1 : New Miner
Andi2956
do I need a resorse pack?
1
05/26/2020 3:49 am
Level 43 : Master Engineer
CMD-Golem
If you want to see the texture of a key you need to install the ressource pack. If you don't you will see a carrot on a tick as key. So its voluntary.
1
05/25/2020 12:50 am
Level 43 : Master Engineer
CMD-Golem
Thanks for the subscription @aamirash
1
05/14/2020 10:16 am
Level 5 : Apprentice Miner
therecipemaker
Your site is blocked for me.
Could there be a mirror download, at Mediafire or curseforge?
1
05/23/2020 12:01 am
Level 1 : New Miner
i am a cool
curseforge bad
2
05/14/2020 10:14 am
Level 5 : Apprentice Miner
therecipemaker
OH that's cool!
1
05/12/2020 3:30 pm
Level 1 : New Miner
LucaTony0708
Hey! Quick question: What would happen if I were to lose my key? Can I open the chests back up with another key I craft? Does it check for players or the key it was used to lock it?

And thank you for the data pack! Aside from this one concern from me, its absolutely awesome!
1
05/12/2020 4:10 pmhistory
Level 43 : Master Engineer
CMD-Golem
Thank you. It checks for the player, so the key doesn't matter.
2
05/01/2020 8:01 pm
Level 1 : New Explorer
DUD3
Great job on this data data pack. I like it alot and use it in most of my worlds.If I may I would ask of you to add this lock/unlock function to a door please and if a key has a specific name to open a chest a regular key shouldn't be able to unlock it same for the door. (Just a suggestion; )
1
05/25/2020 2:25 pm
Level 43 : Master Engineer
CMD-Golem
I just wanted to add the locking system for doors. The Problem is that the player walks to fast and can go through a door, even if it get closed in the same tick. So saddly that doesn't work.
To my knowledge, you can't compare Text with commands, so it also is impossible to test for a specific name.
I'm really sorry, your ideas were really good, but saddly commands doesn't allow it.
1
05/02/2020 3:45 am
Level 43 : Master Engineer
CMD-Golem
Thanks, this are cool ideas. I will see if I can add them, but not shure, if it works.
2
04/27/2020 2:12 pm
Level 43 : Master Engineer
CMD-Golem
Thanks for the subscription @Qacheq_of_Borg
2
04/27/2020 6:10 am
Level 43 : Master Engineer
CMD-Golem
Thanks for the subscription @FlareStormGaming
2
04/18/2020 11:21 am
Level 1 : New Miner
8Index
On the cracked server. it looks like everyone can open locked chest with any key.
2
04/18/2020 1:23 pm
Level 43 : Master Engineer
CMD-Golem
This shoudn't be the case if the players don't use the same name
2
04/21/2020 11:18 pm
Level 1 : New Miner
narmada
same name for what? i tried using separate names for 2 keys and 2 chests with each having a corresponding name to its respective chest (key X, chest X, key Y, chest Y) and both keys still opened both chests.
2
04/22/2020 2:04 am
Level 43 : Master Engineer
CMD-Golem
The Chest doesn't detect the key, but the player. So if player a locks a chest only he can unlock it no matter which key he uses.
2
04/22/2020 6:19 am
Level 1 : New Miner
narmada
ah thank you, was just going for clarification. however now im having a problem with crafting the key. i put the recipe in correctly but it outputs nothing. i even did /recipe give * which gives all recipes and i was able to receive the key recipe but not make it. if it helps, none of my crafting recipes are working from my other data packs and its just the crafting recipes; everything else works
2
04/22/2020 4:04 pm
Level 43 : Master Engineer
CMD-Golem
Are you shure that the recipe doesn't work. In all my worlds it works without any problem.
If you put the gold ingots in the correct way into the crafting grid. It will show up a golden nugget. You will get the key after you ptake the golden nuggets.
If the problem still exists, you could send me a l download link to your world, that I can have a look on it.
2
04/18/2020 7:05 am
Level 43 : Master Engineer
CMD-Golem
Thanks for the subscription @Pc_Gamer14
2
04/18/2020 3:28 am
Level 43 : Master Engineer
CMD-Golem
Thanks for the subscription @PuffinSmoke
Planet Minecraft Logo

Website

© 2010 - 2020
www.planetminecraft.com

Welcome