ModMC
Key - Lock chests, other containers and doors

Key - Lock chests, other containers and doors

Craft keys to lock containers and doors so griefers and Creepers cannot touch your valuables.

26k70Data PackStorageUtility
Download8.1+mod · MC 26.3All files →

About Key - Lock chests, other containers and doors

Key is a lightweight storage and utility mod that gives players a simple way to safeguard chests, barrels, and entryways on shared worlds. Instead of relying on complex land-claiming systems, you craft an actual Key item and shift right-click targets to secure them. Stored items become completely untouchable to outside hands, preventing theft, hopper draining, and accidental destruction from stray Creepers.

Securing an object binds it directly to your character profile, though you can also name your Key in an anvil to act as a shared passphrase for teammates. Locked objects resist breaking and can optionally project holographic outlines once destroyed or configured. If enabled in server settings, double doors snap open together, and nearby secure containers unlock hands-free as long as you hold the matching Key in your hotbar.

This system suits small community servers, roleplay realms, and survival groups that want physical security without bulky claim boundaries or database plugins. Bases feel lived-in because doors swing shut behind you, and faction members can share chest access simply by sharing named Keys. Admins also get clear limits to cap locked blocks per user and prevent excessive world clutter.

In a custom pack, Key drops right onto dedicated servers without requiring players to install client mods, though client resource packs can provide matching visuals. It works alongside modded doors and storage blocks out of the box. Pack creators can tweak container tags, adjust durability costs for locking, or rely on admin recovery tools if conflicting mechanics ever disrupt containers.

Key Data Pack LogoLocked Chest as hologramChest has been unlockedLocked DoorKey Recipe

Features

  • Locks containers, doors, trapdoors, and fence gates, including blocks added by other mods.
  • Supports player-bound ownership as well as shareable passcode access via renamed Key items.
  • Prevents hoppers and direct breaking from extracting items out of locked storage containers.
  • Keys have durability that can be repaired using Gold Ingot items and preserved with Unbreaking.
  • Optional automatic proximity unlocking opens doors and containers when holding the matching Key.
  • Server administrators can use an Admin Key and command functions to manage or restore blocks.

Tips

  • Enchant your Key with Unbreaking or Mending early so locking containers does not wear down durability quickly.
  • Never run kill commands on all entities in the world because special entities track block lock states.
  • Access /function keylock:settings/menu to enable password sharing or activate automatic door unlocking within three blocks.

How to install

  1. Download the data pack .zip.
  2. Open your world folder (saves/<world>) and then the "datapacks" folder.
  3. Put the .zip there (or add it when creating a new world).
  4. Run /reload or re-open the world.

FAQ

Is Key required on both the client and the server?

Key is required on the server side and is optional on the client. Players can join without it, though installing the supplementary resource pack gives proper visual textures.

Which mod loaders and Minecraft versions work with Key?

Key works across Data pack, Fabric, Forge, NeoForge, and Quilt environments. It supports Minecraft versions from 1.20.2 up to 26.3 without requiring any external dependency mods.

How do you repair a damaged Key?

On version 1.21.2 and newer, repair your Key with a Gold Ingot in an Anvil. On versions 1.20.2 through 1.21.1, drop the Key alongside a Gold Ingot onto an Anvil.

Download Key - Lock chests, other containers and doors

Data Packs

See all →
Mine Glass Without Silk Touch

Mine Glass Without Silk Touch by Jodek

Break and recover glass blocks using bare hands or any tool without needing the Silk Touch enchantment.

Data PackAdventureEquipmentGame MechanicsFabricForgeNeoForgepaper
25k downloads40 followers last month
Aspects

Aspects by Efimity

Collect monster essences to unlock distinct player forms with passive traits and triggerable abilities.

Data PackAdventureGame MechanicsMagicFabricForgeNeoForgeQuilt
24k downloads93 followers 2 months ago
Shulker Preview

Shulker Preview by tryashtar

Inspect the contents of shulker boxes and ender chests directly from your inventory tooltip.

Data PackStorageUtility
23k downloads22 followers last year
Backported Shelves

Backported Shelves by palm1

Adds display shelves from the upcoming drop to your server without requiring players to install anything.

Data PackDecorationEconomyStorageFabricQuilt
20k downloads52 followers last year