promotional bannermobile promotional banner

Locks Reforged

The "Locks" mod updated to work with 1.20.1; includes all features of the original with full configurability and some bug fixes.

File Details

Locks Reforged 1.5.3 (Forge 1.20.1)

  • R
  • Apr 16, 2026
  • 649.29 KB
  • 223
  • 1.20.1
  • Forge

File Name

locks_reforged-1.5.3.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:locks-reforged-1467684:7937599")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

1.5.3

Bug Fixes

  • Fixed inability to place locks on containers in Adventure gamemode. Vanilla's ItemStack.useOn() short-circuits when mayBuild is false, which prevented LockItem.useOn() from ever firing. Lock placement now falls back to the RightClickBlock event handler when sneak-clicking with a lock item in Adventure mode, matching how picking, relocking, and pickup already worked.

1.5.2

Bug Fixes

  • Fixed keys, master keys, key rings, Awareness enchantment, and curio key rings being unable to re-lock unlocked lockables. The toggle logic only ran when at least one lockable was locked; unlocking all lockables at a position made re-locking impossible in all game modes.
  • Fixed NullPointerException crash in StructureTemplateMixin when the lockable handler capability is missing during structure copy or paste operations.
  • Fixed Lock.fromBuf creating an all-zero pin combo on the client instead of generating a proper dummy combo from the lock's ID seed.
  • Fixed KeyRingInventory.extractItem using getMaxStackSize() instead of getCount() as the extraction limit, violating the IItemHandler contract.
  • Fixed Transform.fromDirectionAndFace returning null for unmapped direction/face combinations, which could cause NullPointerException in lock state calculations. Now falls back to NORTH_MID.
  • Fixed LockItem.isOpen() calling getOrCreateTag() on read, which unnecessarily created empty NBT tags on items without existing data.

Loot-Scaled Lock Generation

  • Chests whose loot value falls below all configured tier thresholds no longer receive a lock when loot-scaled locks are enabled. Previously, these low-value chests always received a wood lock despite the config description stating otherwise.

New Config

  • Added Loot Table Injection Patterns server config option. Controls which loot tables receive lock pick and key loot injection. Default: minecraft:chests/. Add entries like some_mod:chests/ to inject into modded dungeon chests.

Security

  • Added additional server-side validation to lock picking packets: the server now re-checks that the lock is still locked and the player still holds a valid pick before processing each pin attempt.

Misc

  • Invalid entries in the Lockable Tags config list now log a warning instead of being silently skipped.