Description

SafeChest is a Java Minecraft datapack that gives players the ability to lock their valuables into an indestructible SafeChest that can only be opened while holding the exact key that was used to lock it.
Someone on Reddit was bemoaning the fact that, 15 years later, you still can't ever really LOCK a chest... since even when locked it could just simply be broken and robbed without opening it... which I took as a challenge. Behold! SafeChest! Locks a chest up tight, making it indestructible and unopenable unless unlocked with its exact-match key. Lock any chest simply by opening it twice in rapid succession while holding your desired key. A key can be anything you can hold. Naming it on an anvil will make that key even that much more unique and secure. No resource pack required.
One simply holds onto the desired key in their mainhand, and opens the chest twice in rapid succession. If conditions are met, that chest will be locked into a SafeChest, an indestructible vault of safe-keeping.
To unlock the SafeChest, one simply holds the key item in their mainhand, and interacts with the SafeChest. If the key is a proper match, the SafeChest will unlock, allowing players access to that chest once again.
SafeChests may not be stacked vertically. "Why?" You may ask. Asked another way; why would it be allowed to stack indestructible blocks into an impenetrable fortress on a survival multiplayer server? I think you understand the restriction.

Administrators do have access to a few commands to help out players who inevitably will lock themselves out of their treasure, or otherwise lose their keys. Come on. We've all had to call our landlords at least once for this exact same issue, am I right?
Administrators will have access to steward commands:
1. bust_open
2. copy_key
1. No per-tick functions, so no lag to the server.
2. Properly formatted target selection.
3. Performs the intended function seamlessly.
4. No resource pack dependency.



