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.6.1 (Forge 1.20.1)

  • R
  • Jun 24, 2026
  • 663.76 KB
  • 924
  • 1.20.1
  • Forge

File Name

locks_reforged-1.6.1.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Forge

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

Learn more about Curse Maven

1.6.1

Respawning Structures Compatibility

  • Added compatibility with the Respawning Structures mod (someaddons/respawningstructures). When that mod regenerates a structure, it re-places the structure's chests and loot by replaying its structure pieces, which does not re-run biome decoration — so our LockChestsFeature never fired again and respawned chests came back unlocked. Locks Reforged now re-locks the chests of a respawned structure automatically.
  • Implemented as a soft dependency via Respawning Structures' public StructureRespawnEvents.AFTER_RESPAWN_EVENT callback (wired by reflection, so there is no hard dependency and no effect when the mod is absent). After a structure respawns, stale lockables overlapping the structure footprint are cleared and the freshly placed chests are re-locked using the same rules as world generation (generation chance, loot-scaled tiers, and enchant chance), so the lock distribution matches a newly generated structure. Double chests receive a single lock spanning both halves.
  • Extracted the per-chest lock selection logic into a shared LocksUtil.createChestLockable(...) helper so world generation and the respawn path stay identical; normal world-generation behavior is unchanged.