Locking up your base

How code locks work, who can open them, and which base storage can be locked.

Regular2 min read

Code locks

How do I put on a code lock?

  1. Close the door or gate.
  2. Take the code lock in your hands and attach it.
  3. Choose Set Passcode and enter a code of three to six digits.
A code lock on a wooden gate
A code lock on a wooden gate

Whoever sets the first code becomes the lock's owner.

Who can open it?

PlayerWhat they can do
OwnerOpen it, change the code, remove the lock
Anyone who entered the right codeOpen it without typing the code again
Everyone elseTry a code

How do I change the code or remove the lock?

Look at the lock and choose Manage Lock, then enter the code.

  • Change the code: everyone you let in has to enter the new code before they can open it again.
  • Remove the lock: it drops to the ground and can be used again.

Only the owner can change the code or remove the lock.

The owner's lock window, with Remove Lock, Change Passcode, and Open Door
The owner's lock window, with Remove Lock, Change Passcode, and Open Door

What about combination locks?

Vanilla combination locks fit the same doors, gates, and storage. Anyone who dials the right numbers can open one, so a code lock is the safer choice.

Base storage

Storage from the base storage mod has names that start with "MMG", for example "MMG Solo Locker". Look for it in industrial, military, and farm buildings. Some pieces spawn as a kit that you place like any other item.

Which storage can be locked?

StorageTakes a code lock
Solo LockerYes
Equipment LockerYes
TA-50 LockerYes
Old SafeYes
Armored CabinetYes
Lockable GunrackYes
Metal CrateNo
Supply CrateNo
Army BoxNo
Military CaseNo
Weapon CrateNo
Gun RackNo
GunwallNo
Gear StandNo
Wall ShelfNo
Grenade CaseNo
FridgeNo
ToolwagonNo
Palette StorageNo

Storage without a lock can be opened by anyone who finds it.

What can a locker hold?

Lockers have cargo space plus slots for a full set of clothing, a backpack, long guns, a pistol, and a knife. Gun racks and gunwalls hold long guns. A supply crate holds building materials: logs, planks, firewood, and nails.

What about vanilla storage?

Tents, wooden crates, barrels, and sea chests can't take a code lock. Anyone can open them.

Pictures: the Workshop pages of the code lock mod and the base storage mod.

Last checked November 2, 2026. The Zone changes. If this page is wrong, say so on the Discord.