Lock any container with a Lock crafted from iron and copper. Share access by cutting keys for trusted players. Forgotten locks rust away on their own so nothing stays sealed forever.
Two items make up the lock system. A Lock is crafted from 3 iron ingots and a copper ingot, and seals a container. A Blank Key is an iron ingot above a copper ingot, and is cut into a key for a lock you own.
You can lock any container: chests, barrels, furnaces, brewing stands, and more. The Lock is used up.
Sneak + right-click a container with an empty hand to see whether it's locked.
Only the container's owner can cut keys. A key opens the container but can't remove the lock.
permanent access to themselves.Sneak + right-clicking with the key is what grants persistent access, and uses the key up. Without that step, the player holds the key to open the container.
Only the owner can remove a lock. Doing so returns the Lock and invalidates every key.
Locks left untouched eventually rust away. This stops abandoned or forgotten locks from blocking containers forever.