Lock any container so only you can access it.

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.
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!
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!
All locked containers are fire proof, creeper and tnt explosion resistant.
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.
Optional
Required
Terms for using, modifying and redistributing this product.
08.07.2026 · Modrinth
Patch Notes:
- Added support for 26.2.
Screenshots and images from the original Modrinth page.


Published versions and original Modrinth files.
08.07.2026 · 1 090 downloads
Patch Notes:
- Added support for 26.2.
08.07.2026 · 205 downloads
Patch Notes:
- Added support for 26.2.
08.07.2026 · 769 downloads
Patch Notes:
- Added support for 26.1, 26.1.1, and 26.1.2.
08.07.2026 · 80 downloads
Patch Notes:
- Added support for 26.1, 26.1.1, and 26.1.2.
09.12.2025 · 5 079 downloads
Patch Notes:
- Added support for 1.21.11.
09.12.2025 · 786 downloads
Patch Notes:
- Added support for 1.21.11.
07.11.2025 · 1 173 downloads
Patch Notes:
- Updated the Force Remover item description.
- Force Remover item will now be consumed when used.
07.11.2025 · 151 downloads
Patch Notes:
- Updated the Force Remover item description.
- Force Remover item will now be consumed when used.
07.11.2025 · 38 downloads
Patch Notes:
- Add support for all colored shulker boxes.
07.11.2025 · 19 downloads
Patch Notes:
- Add support for all colored shulker boxes.
23.10.2025 · 676 downloads
Patch Notes:
- Removed particles above locked containers.
23.10.2025 · 115 downloads
Patch Notes:
- Removed particles above locked containers.
23.10.2025 · 1 017 downloads
Patch Notes:
- Added support for 1.21.5 - 1.21.8 for v3.2.0.
- Removed particles above locked containers.
23.10.2025 · 87 downloads
Patch Notes:
- Added support for 1.21.5 - 1.21.8 for v3.2.0.
- Removed particles above locked containers.
22.10.2025 · 77 downloads
Patch Notes:
- Added double chest locking support.
- All copper chest variants can now be locked.
- Fixed bug where previously interacted locked chests in close range would unlock when trying to unlocking a different chest lock.
- Fixed bug where previously interacted locked chests in close range would delete when trying to delete a different chest lock.
- Fixed force lock remover not working every time.
- Disabled hopper minecarts that are placed under locked containers.
- Improved overall performance.
22.10.2025 · 58 downloads
Patch Notes:
- Added double chest locking support.
- All copper chest variants can now be locked.
- Fixed bug where previously interacted locked chests in close range would unlock when trying to unlocking a different chest lock.
- Fixed bug where previously interacted locked chests in close range would delete when trying to delete a different chest lock.
- Fixed force lock remover not working every time.
- Disabled hopper minecarts that are placed under locked containers.
- Improved overall performance.
01.10.2025 · 367 downloads
Patch Notes:
- Added support for 1.21.9.
01.10.2025 · 106 downloads
Patch Notes:
- Added support for 1.21.9.
24.09.2025 · 566 downloads
Patch Notes:
- Fixed the 'Force Remover' item not removing a locked container.
- 'Force Remover' can now be used with both left and right clicks.
24.09.2025 · 81 downloads
Patch Notes:
- Fixed the 'Force Remover' item not removing a locked container.
- 'Force Remover' can now be used with both left and right clicks.
29.07.2025 · 1 160 downloads
Patch Notes:
- Fixed creeper still destroying locked containers.
29.07.2025 · 245 downloads
Patch Notes:
- Fixed creeper still destroying locked containers.
01.07.2025 · 581 downloads
Patch Notes:
- Added support for 1.21.7.
01.07.2025 · 136 downloads
Patch Notes:
- Added support for 1.21.7.
28.06.2025 · 57 downloads
Patch Notes:
- Fixed datapack not showing up in-game.
28.06.2025 · 37 downloads
Patch Notes:
- Fixed datapack not showing up in-game.
23.06.2025 · 92 downloads
Patch Notes:
- Added support for 1.21.6.
23.06.2025 · 54 downloads
Patch Notes:
- Added support for 1.21.6.
14.04.2025 · 1 176 downloads
Patch Notes
- Added support for 1.21.5.
- Added admin lock removal with /function locker:deleting/give_remover.
14.04.2025 · 244 downloads
Patch Notes
- Added support for 1.21.5.
- Added admin lock removal with /function locker:deleting/give_remover.
07.04.2025 · 192 downloads
Patch Notes:
- Leftover locks (interaction entities) are now removed when the container is broken.
16.03.2025 · 1 907 downloads
Patch Notes:
- Added an uninstall command.
16.03.2025 · 83 downloads
Patch Notes:
- Added an uninstall command.
01.03.2025 · 73 downloads
Patch Notes:
- Enchanted items can now also be used as keys.
24.02.2025 · 229 downloads
Patch Notes:
- Added more security checks.
- Added anti-griefing for locked containers.
- Added lock removal (works only with the correct key).
24.02.2025 · 45 downloads
Patch Notes:
- Added more security checks.
- Added anti-griefing for locked containers.
- Added lock removal (works only with the correct key).
10.12.2024 · 558 downloads
Patch Notes:
- Added support for every item to be a key.
- Item Count can now be part of the key.
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".
10.12.2024 · 179 downloads
Patch Notes:
- Added support for every item to be a key.
- Item Count can now be part of the key.
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".
08.12.2024 · 4 540 downloads
Patch Notes:
- Added support for 1.21 - 1.21.1.
06.12.2024 · 113 downloads
Patch Notes:
- Added support 1.21.4.
- Fixed most of the known issues.
06.12.2024 · 80 downloads
Patch Notes:
- Added support 1.21.4.
- Fixed most of the known issues.
25.05.2024 · 724 downloads
Added support for 1.20.5+
24.05.2024 · 196 downloads
Added support for 1.20.5+
30.12.2023 · 1 334 downloads