Data merge block 1 lock.
Minecraft locked chest. The original texture identical to standard chest the texture after 1 3 1. The locked chest was an april fools block. Locked chests were added in minecraft 1 4 as part of an april fool s joke by notch. Locked chests were an april fool s addition to minecraft.
You can do this two different ways setblock or data. We want to set the secret passcode to digminecraft so that only a player holding an item that is named digminecraft can open the chest. That datapack allows any player to lock the chests in minecraft vanilla survival mode. 1 obtaining 1 1 breaking 1 2 natural generation 1 3 entity loot 1 4 crafting 2 bonus chest 3 usage 3 1 container 3 2 donkey mule or llama pack 3 3 piglins 3 4 crafting ingredient 3 5 fuel 4 christmas chest 5 sounds 6 data values 6 1 id 6 2 block data 6 3 block states 6 4 block entity 7 achievements 8 advancements 9 history 10 issues 11.
How to lock a chest. The locked chest is part of the beta 1 4 april fools update by notch. So now i am going to talk about locking and unlocking chests. Creative players can create universal keys to chests 3.
The command used to lock a chest is the. When you unlok a chest the chest will have to be unlocked with an item that has a specific name you can either use this with the give command or you can always use an anvil as a simpler way to name an item that you have. This way only the player who locked it can open it. Also allows anyone in creative get a universal key following the steps of a normal key but instead of lock do universalkey features.
You can change that by editing the config file minecraft config. We can add the lock to the chest with the following command in minecraft java edition pc mac 1 13. The mechanism to do it is already is the game just not used in survival minecraft. A chest is a block that stores items and other blocks.
Their texture is the same as the chest before beta 1 8 1. The idea came from the game team fortress 2 but instead of being named mann co. Depends on what way of protection you choose. We are doing the same thing with both of these options but data edits an existing chest whereas setblock creates a new one.
Supply crates they were instead referred to as steve co. However even in versions in which the locked chest is not removed the only way to obtain it is. They have been removed from the game as of 1 7 and they can only be obtained in versions before 1 7. They will also glow with a luminance of 15 identical to glowstone.
In this example we are going to add a lock to a chest found at coordinates 32 73 199. 1 obtaining 1 1 breaking 1 2 natural generation 2 usage 2 1 items sold 2 2 fuel 3 data values 3 1 id 4 history 5 issues 6 trivia 7 gallery 7 1 store related 8 references every chunk generated between april 1 and april 5 2011 had a small chance of having a locked chest in it 1 when introduced this block was indestructible except for explosions. Activated per default craft a key 2 iron ingots on top of each other shift right click with this key on a chest. To open it click again with the key.