HomeJavaDatapacksLock and Key
Lock and Key
DatapacksJava

Lock and Key

by ctkrocks · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21–1.21.1 · Data pack⬇ Download for 1.21–1.21.1 · Fabric⬇ Download for 1.21–1.21.1 · Forge⬇ Download for 1.21–1.21.1 · NeoForge⬇ Download for 1.21–1.21.1 · Quilt
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Allows you to lock your doors, trapdoors, chests, barrels, and pots with a Trial Key.

Watch the video to see it in action:

Locking

Shift right-click on a block with a trial key to lock it.

The key will be given a unique ID (like maps).

Locked blocks can't be interacted with or broken.

Unlocking

Right-click with the correct key to unlock a block.

Key Cloning

Use a Bolt Armor Trim, a Trial Key, and a Copper Ingot to clone a key in a smithing table.

The cloned key will work anywhere the original key does.

Lost Keys

If you lose a key, you will have to break back into any locked blocks.

For example, TNT can be used to blast your way into these blocks.

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more