Lock and Key
by ctkrocks
Players who want protected storage can use Lock and Key, which uses Trial Keys to restrict access to containers and entrances.
What it does
A locked block can only be opened by a player holding a key that matches its lock, and other players cannot interact with or break it. A cloned key works anywhere the original does. The server must run the mod, while players may leave it out, and it targets 1.21 and 1.21.1 on Fabric, Forge, NeoForge and Quilt. It is released under the MIT License and is not open source, and it also ships as a data pack.
Key features
Trial Key locks
A Trial Key locks doors, trapdoors, chests, barrels and pots, so each container or entrance can be restricted.
Unique key IDs
Every key is given a unique ID, the way a map is, so a key identifies the lock it belongs to.
Protected locked blocks
Locked blocks cannot be interacted with or broken by other players, and a cloned key opens them as well.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
How it compares
Padlocked is a NeoForge mod released under the MIT License and is open source, with files for 1.21.1 – 26.1.2 and a client and server environment. Trial Key Recipe is a Fabric, Forge, NeoForge and Quilt mod under All rights reserved and not open source, covering 1.21 – 26.3; it is needed on the server, with the client optional.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Lock and Key | Fabric, Forge, NeoForge and Quilt | 1.21 – 1.21.1 | Server required, client optional | 2024-08-26 |
| Padlocked | NeoForge | 1.21.1 – 26.1.2 | Client and server | 2026-04-27 |
| Trial Key Recipe | Fabric, Forge, NeoForge and Quilt | 1.21 – 26.3 | Server required, client optional | 2026-09-19 |
Questions
Does Lock and Key need to be installed on the server?
In the catalog
Lock and Key is one of 4,058 Storage mods on ModsFinder, and one of 2,474 Storage mods for Fabric. 32,366 mods support Minecraft 1.21.1.
More from ctkrocks
Similar mods
What the author says
Allows you to lock your doors, trapdoors, chests, barrels, and pots with a Trial Key. The key will be given a unique ID (like maps).
Official listing
- Modrinth page
- modrinth.com/mod/lock-and-trial-key
- Owner
- ctkrocks
- Published
- 2024-08-26
- Updated on Modrinth
- 2024-08-26
- Facts verified
- 2026-10-15
