Lock&Key: Physical Keys and Locks for Minecraft

Lock&Key for Minecraft adds physical keys and locks to chests. Craft unique keys, copy them, and set access modes. No commands needed. Download now.

Download KeyNdLock bukkit for Minecraft 26.1.1, 1.20.6

Original name: KeyNdLock bukkit

Minecraft: 1.20.6, 26.1.1

FileVersionLoaderSize
KeyNdLock-bukkit-1.0.jar1.20.6—59 КБDownload
KeyNdLock-bukkit-1.1.0.jar1.20.6—72 КБDownload
KeyNdLock-bukkit-modern-1.0.jar26.1.1—59 КБDownload
KeyNdLock-bukkit-modern-1.1.0.jar26.1.1—72 КБDownload

Lock&Key

Imagine a Minecraft world where protecting your valuables isn't about typing commands or claiming regions. Instead, you craft a physical key, lock your chest with it, and only someone holding an identical key can open it. That's exactly what the Lock&Key add-on delivers — a fully gameplay-integrated locking system that turns security into a tangible, immersive mechanic.

How Lock&Key Reinvents Chest Protection

Traditional chest protection often relies on external plugins that use permissions, commands, or invisible block data. Lock&Key takes a different approach. Every key you create is a physical item with a unique FormCode, such as XXX#123. This code determines which containers the key can open. No commands, no regions — just keys, locks, and the thrill of holding the only copy of a key that opens your most precious loot.

The Key System: Unique FormCodes

When you craft a key in Lock&Key, it's not a generic item. Each key receives a randomly generated FormCode that acts as its digital fingerprint. This code is stored directly on the key item using Minecraft's PersistentDataContainer, meaning it survives server restarts and never gets mixed up with other keys. You can carry multiple keys, each with its own code, and use them to access different locked containers.

Locking Containers: Simple and Intuitive

Locking a chest, barrel, or other container is straightforward. Crouch and right-click the container with your key, and it becomes bound to that key's FormCode. Double chests are fully supported — lock one half, and the entire double chest is secured. From that moment on, only a key with the matching code can open it. Anyone else will find the container firmly shut, adding a layer of physical security that feels natural in survival gameplay.

Access Modes: More Than Just Locked or Unlocked

Lock&Key doesn't stop at a simple binary lock. You can switch containers between different access modes to fine-tune how others interact with your storage:

  • Completely Closed — Access is granted only to players holding the correct key. Perfect for private vaults.
  • View Only — Players can open the container and see its contents, but they cannot take any items. Ideal for shared resource rooms or museum displays.

This flexibility makes Lock&Key suitable for multiplayer servers where you want to share some resources while keeping others strictly off-limits.

Key Copying and Durability Mechanics

One of the most innovative features of Lock&Key is its key copying system. You can create two types of duplicates:

  • Key Cast — Copies the FormCode of the original key but has limited durability. It's a quick way to share access temporarily.
  • Duplicate Key — Created from an impression, this key can open containers but also has a limited number of uses before it breaks.

Every duplicate loses durability with each use. Once its strength is exhausted, the key shatters, preventing infinite key duplication and adding a resource management layer. This wear system encourages players to think carefully about who they trust with a copy and how often they use shared keys.

Data Storage and Gameplay Integration

All lock and key data is stored through the PersistentDataContainer, which is essentially Minecraft's built-in per-block and per-item database. This means Lock&Key doesn't rely on external databases or complicated region files. Everything is embedded directly into the game's own data structure, ensuring compatibility and stability across server restarts and updates. The plugin is fully integrated into gameplay — no commands are required to lock or unlock containers, making it feel like a native Minecraft feature.

Crafting Recipes and In-Game Economy

Lock&Key introduces custom crafting recipes for keys, key casts, and other related items. These recipes are designed to fit seamlessly into vanilla survival, using materials like iron, gold, and redstone. By tying key creation to resource gathering, the add-on creates a natural in-game economy around security. Players must mine, smelt, and craft to protect their belongings, adding depth to the survival experience.

Installation and Compatibility

Lock&Key is a server-side plugin compatible with Minecraft Java Edition versions 1.20, 1.21, and newer releases. It works on Spigot, Paper, and other Bukkit-based server platforms. To install manually, simply download Lock&Key and place the .jar file into your server's plugins folder, then restart the server. For those who prefer a streamlined experience, the foxygame.net launcher offers Lock&Key in its curated add-on catalog, allowing you to install it with a single click and receive automatic updates whenever a new version is released. This ensures you always run the latest build without checking forums or download pages manually.

Why Lock&Key Stands Out

Unlike many protection plugins that feel tacked-on, Lock&Key transforms security into a core gameplay loop. The physical key system, unique FormCodes, access modes, and durability mechanics all work together to create a cohesive experience. Whether you run a small survival server with friends or a large public network, Lock&Key for Minecraft provides a balanced, immersive way to handle container security. The absence of commands keeps the focus on in-game actions, and the key copying system adds strategic depth. If you're ready to move beyond permission nodes and region flags, download Lock&Key and give your players a security system that feels like it belongs in Minecraft.