
## 📖 Description A secure method to store items and lock them with a key of your choice! This datapack operates seamlessly in both singleplayer and multiplayer modes.
📦 How to use v3.0.0+
To lock any container, simply look at it and execute the command /trigger ChestLocker while holding an item that you've renamed in your main hand. If the container isn't already locked, it will secure it with the key you're holding, making it accessible only with that specific key. Item count can also be part of the key.
Use /function locker:deleting/give_remover and right click any locked container with the given item to remove that lock. You need operator permission to use this!
⚠️ IMPORTANT NOTE
Item durability is included in the locking system! This means that if you lock an item with x amount of durability, you can only use that item to unlock that container when it has the same amount of durability!
Extra security
All locked containers are fire proof, creeper and tnt explosion resistant.
Example
You can lock a container with 16x cobblestone renamed to "Key 826423".
This container can now only be opened when the player holds 16x cobblestone that is renamed to "Key 826423".
To open a lock on a container, hold the correct key and right-click the container. The lock on the container is now opened and will lock itself again after 5 seconds or after opening the container, ensuring the safety of the container's items.
To remove a lock on a container, hold the correct key and left-click the container. The lock on the container is now removed and can now be locked again with /trigger ChestLocker.

How to Install Chest Locker (Datapack)
Chest Locker by Vanderflys is verified for Datapack, Fabric, Forge, Neoforge, Quilt across Minecraft versions 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1 (latest release: v3.2.3+mod, file size: 34 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.17, 1.17.1, 1.18, 1.18.1) and platform (Datapack, Fabric, Forge, Neoforge, Quilt).
- Make sure you have the compatible loader or environment installed for Datapack, Fabric, Forge, Neoforge, Quilt.
- Move the downloaded Chest Locker file into your Minecraft
.minecraft/saves/<world>/datapacksfolder and launch the game.
All Versions
+ Add Version| Name | Game version | Platforms | Published | Downloads | Actions |
|---|---|---|---|---|---|
| 2mo ago | 39 | ||||
| 2mo ago | 19 | ||||
| 2mo ago | 13 | ||||
| 2mo ago | 10 | ||||
| 2mo ago | 8 | ||||
| 2mo ago | 6 | ||||
| 2mo ago | 6 | ||||
| 2mo ago | 5 | ||||
| 2mo ago | 4 | ||||
| 2mo ago | 4 | ||||
| 2mo ago | 4 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 3 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 2 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 | ||||
| 2mo ago | 1 |
- Added support for
26.3.
- Added support for
26.3.
- Added support for
26.2.
- Added support for
26.2.
- Added support for
26.1, 26.1.1, and 26.1.2.
- Added support for
26.1, 26.1.1, and 26.1.2.
- Added support for
1.21.11.
- Added support for
1.21.11.
- Updated the Force Remover item description.
- Force Remover item will now be consumed when used.
- Updated the Force Remover item description.
- Force Remover item will now be consumed when used.
- Add support for all colored shulker boxes.
- Add support for all colored shulker boxes.
- Removed particles above locked containers.
- Removed particles above locked containers.
- Added support for
1.21.5 - 1.21.8forv3.2.0. - Removed particles above locked containers.