Locksmith

Overview

Locksmith lets players lock doors, chests, trapped chests, and configured modded blocks with physical Iron Keys instead of a claims or permission system.

The lock is bound to the registered key passphrase. Anyone carrying a matching registered key can use the block; anyone without it is stopped by the server.

The basic loop
  1. Craft an Iron Key.
  2. Right-click the unregistered key in your main hand.
  3. Enter a secret passphrase and confirm.
  4. Right-click a supported door or chest with the registered key to lock it.
  5. Copy the key with the minting recipe if other players need access.
Unlocked lock model
Before locking

Supported blocks behave normally until a registered key places a Locksmith lock.

Locked lock model
After locking

The server stores the block position and key hash, then syncs the visible lock state to clients.

What Locksmith Protects

Default profiles are created for vanilla doors, vanilla chests, and trapped chests. Server owners can add more lockable blocks through config/locksmith_profiles.json.

Locks do not make blocks indestructible. If a locked door or chest is broken, destroyed, or removed, the saved lock entry is cleaned up and clients are resynced.

Server-Authoritative Checks

Locksmith checks access on the server. Client prediction is used only to make interaction feel immediate; the final decision is still made by the server.

Matching keys are searched in:

  • Main inventory.
  • Offhand.
  • Armor slots.
  • Curios key slot, when Curios is installed.

Where To Go Next

Support This Project

Like this wiki and these mods?

Every bit of support helps me keep building features, writing docs, and shipping updates.

Back to top