Minecraft Blogs / Tutorial

How to lock chests in MC 1.8+ (no mods)

  • 3,935 views, 0 today
  • 7
  • 3
  • 6
typemaster123
Level 65 : High Grandmaster Pyro
24
Do you want to lock chests in minecraft with no mods? Well here's how.

Step 1:
Get the chest that requires a lock.
To do that, use this command:
Code
/give @p chest 1 0 {BlockEntityTag:{Lock:"NAMEGOESHERE"}}
Now, you have a chest in hand. Place it. If you try to open it, it will say "This Chest is locked."

Step2:
To open your chest, you will need a key Use this command to get this key:
Code
/give @p stick 1 0 {display:{Name:"NAMEGOESHERE"}}

Just make sure that the lock(chest) and the name(key) match. It doesn't matter what they are, as long as they match perfectly. :)
Tags

Create an account or sign in to comment.

hdihgamer
07/27/2018 12:47 pm
Level 1 : New Miner
does this work in PE
1
meeppikmin_
09/08/2016 6:39 pm
Level 1 : New Crafter
I never knew this :O Thanks!
Wow you really do all kinds of useful command block commands!
1
SirGobbo
01/07/2016 9:41 pm
Level 1 : New Collective
This is amazing! Thanks!
1
Link1029
06/20/2015 1:05 am
Level 13 : Journeyman System
Dude, your a genius xD works great! So many things command blocks bring to you, this is one of the best commands ever :D
1
typemaster123
06/23/2015 9:42 pm
Level 65 : High Grandmaster Pyro
Thank you!!
1
typemaster123
06/19/2015 5:02 pm
Level 65 : High Grandmaster Pyro
Sorry I couldn't get any pictures. I will get a link to my video.
1

Welcome