Lock & Key

Lock & Key

A mod that takes advantage of the vanilla tile entity locking system, making it accessible to survival players

by
559 Downloads
forgeneoforgegame-mechanics
Rent Server with this Mod

About this Mod


undefined

Modding Legacy Discord Server Contribute to Lock & Key by helping break the language barrier by translating on Weblate! If you like what we do, please consider supporting us on Ko-fi! Thank you! Built with NeoForge

Follow us! ModdingLegacy Twitter Follow us! moddinglegacy.com Bluesky Subscribe to us on YouTube!

A mod that takes advantage of the vanilla tile entity locking system, making it accessable to survival players.



📄 Summary

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 inventories).

🗝️ Obtaining

The recipe for the key will appear in the recipe book as soon as you obtain a golden ingot, or a golden nugget. Regardless, you can craft it as shown.

Crafting

🔐 How to Use

Once obtained, the key may be used to lock applicable tile entities, you must name the key in an anvil, and then click on the tile entity you would like to lock. The tile entity must be programmed to be lockable, otherwise the key will not work. Once locked, the tile entity cannot be broken by a player unless unlocked, or broken with the key in hand. You may unlock a tile entity by sneaking and right-clicking with the key. If you loose your key, you can create another one under the same name, and it will work (Be careful not to give out your key's name!).

📖 Curse of Vanishing

Similar to compasses, the key may be enchanted with Curse of Vanishing, so when you die the key will disappear. This is good for preventing others who might kill you from obtaining your key, and therefore access to your precious items at home.


🌐 Translate Lock & Key - Help break the language barrier!

All translators are credited here. Thank you to everyone who helps make this mod accessible!
Flag Language Translators
Català (Catalunya) Català (Catalunya) Minaderm
Deutsch Deutsch A1403
Español (Argentina) Español (Argentina) patriciofagetti
Español (España) Español (España) Minaderm
Lietuvių Lietuvių WaryRGMCA
Vlaams (Vlaanderen) Vlaams (Vlaanderen) zjefken.decooman
Polski (Polska) Polski (Polska) filipwyjcii
Русский (Russkiy) Русский (Russkiy) NeonX
Türkçe (Türkiye) Türkçe (Türkiye) mafic60523


🤚 Support: If you have questions or any issues with our mods, read the FAQ! You can also either submit an issue on the issue tracker, or come into our Discord server where we can help you!

Modding Legacy Discord Server

Available Versions

Lock & Key v1.2.1release
MC 26.1.2neoforge
April 29, 2026
Lock & Key v1.2.1release
MC 1.21.7, 1.21.8neoforge
July 7, 2025
Lock & Key v1.2.0release
MC 1.19.4forge
May 22, 2023

How to Install Lock & Key on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set forge Loader

In the panel under "Egg", select the forge loader and matching Minecraft version (26.1.2).

3

Install Mod

Open the mod browser in the dashboard and search for "Lock & Key". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

forgeneoforge

Minecraft Versions

26.1.2, 1.21.8, 1.21.7 (+1 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Lock & Key server crashes on startup – what to do?

Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.

Is Lock & Key compatible with forge and neoforge?

Lock & Key officially supports forge, neoforge for Minecraft 26.1.2, 1.21.8, 1.21.7. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Lock & Key – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Lock & Key consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Lock & Key with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
LicenseRef-All-Rights-Reserved
Server-side
Required

Supported Versions

26.1.21.21.81.21.71.19.4