ModsFinder

Lock & Key

by Modding Legacy

Lock & Key lets a player lock a chest, barrel or other container so only the holder of a matching key can open it.

ForgeNeoForgeClient and serverAll rights reserved1.19.4 – 26.1.2

What it does

The mod builds on the vanilla tile entity locking system and extends it, so lockable blocks that usually hold inventories can be secured with a single key. A key is used to lock and close a container, and a key made for one lock does not open another. Keys appear in the recipe book once a player obtains a golden ingot or a golden nugget, and they can be crafted from there.

A key is bound to its owner, and the mod makes a lock harder to bypass by others, which helps protect valuable items kept at home in survival play. Keys follow the same rules as compasses in one respect: an enchanted key with the Curse of Vanishing disappears when it dies. Lock & Key runs on client and server, so the server and every player need the mod. It is published for Forge and NeoForge across four game versions, 1.19.4 – 26.1.2, and all rights are reserved, so it is not open source.

Key features

  1. Single-key locks

    Each lock is opened by one key, so a container can be secured without sharing access with every player.

  2. Vanilla lock extension

    The mod extends the vanilla lockable tile entity system instead of replacing it, keeping existing locking behavior intact.

  3. Key recipes

    Keys appear in the recipe book after a player obtains a golden ingot or a golden nugget.

  4. Curse of Vanishing handling

    An enchanted key carrying the Curse of Vanishing disappears on death, as with other enchanted items.

Compatibility

Latest build for each game version and loader.

26.1.2Not available1.2.1
1.21.8Not available1.2.1
1.21.7Not available1.2.1
1.19.41.2.0Not available
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Use cases

Protecting a home base

Players store precious items in a locked chest that only the key holder can open.

Shared servers

Server owners who want private storage on multiplayer servers can give each player their own keys.

Who it’s for: Survival players who want their storage containers protected, and server owners who want private storage for each player on a multiplayer server.

How it compares

Full comparison

Infinite Trading is server-side only, not open source, and published for Fabric, Forge, NeoForge and Quilt across 1.16.5 – 26.3, so it covers a different function on a different side. View Lock is a client-side mod released under the MIT License, with files for 1.8.9 – 1.21.4 on Fabric and Forge. Carry On is open source under the GNU Lesser General Public License v3.0 only, runs as client and server and supports 1.12.2 – 26.3 on Fabric, Forge and NeoForge.

ModLoadersGame versionsEnvironmentUpdated
Lock & KeyForge and NeoForge1.19.4 – 26.1.2Client and server2026-04-29
Infinite TradingFabric, Forge, NeoForge and Quilt1.16.5 – 26.3Server-side only2026-10-02
View LockFabric and Forge1.8.9 – 1.21.4Client-side only2024-12-12
Carry OnFabric, Forge and NeoForge1.12.2 – 26.3Client and server2026-09-27

Questions

Does Lock & Key need to be installed on the server?

Yes. The server and every player need the mod installed.

Which loaders does Lock & Key support?

The mod is published for Forge and NeoForge. Forge files target 1.19.4, and NeoForge files target 26.1.2.

Can a lost key be replaced?

Keys are crafted from golden ingots or golden nuggets once the recipe appears in the recipe book, so a replacement can be made from those materials.

In the catalog

Lock & Key is one of 29,952 Game mechanics mods on ModsFinder, and one of 13,316 Game mechanics mods for Forge. 15,189 mods support Minecraft 26.1.2.

More from Modding Legacy

All projects

Similar mods

What the author says

A mod that takes advantage of the vanilla tile entity locking system, making it accessable to survival players. This mod takes advantage of vanilla's tile entity locking system, reworking it to only work with a single key. This key can be used to lock, and unlock any lockable tile entity (usually ones with…
Modding Legacy, on the Modrinth page

Official listing

Owner
Modding Legacy
Published
2023-05-22
Updated on Modrinth
2026-04-29
Facts verified
2026-10-15

Tags