Managing locks
Look at a locked block or object to inspect or change its access. Land rules still apply separately; see Sharing land.
Share a lock
Section titled “Share a lock”Use /lock info to inspect its owner, access, and options. /lock trust <player> allows use, while /lock trust <player> manage also allows management and breaking. /lock untrust <player> removes the grant. The owner can use /lock share on to let town members use the lock, and /lock share off to stop sharing; town sharing does not let them break it.

The message identifies the container’s owner and describes its access and options. A container held by staff shows staff custody instead.
On a claim only you use, redstone always works on your locked dispensers, droppers, and crafters. That means a camp or town where you are the only member, nobody else is trusted on the claim, and its switches and building are not public; there, nobody else can flip your levers. Keep the controls on that claim, or on another claim that only you use: power from a lever or wire anywhere else does not count, including a claim of the same town or camp whose switches are public. Triggers you build yourself still work for anyone who can reach them, as in vanilla: if you wire a trapped chest with a lock others can open, a sculk sensor, or a lectern to a machine, other players can run it through that trigger. Anywhere else, including a shared town and the wilderness, other people could flip your lever and collect what the machine drops, so redstone stays off until you use /lock redstone on. /lock redstone off turns that choice off again, and /lock info shows whether redstone works where the machine stands. Other players can only wire a locked machine if they can open it. To let items move between containers owned by different players, or into a container you left unlocked, use /lock hopper on on each locked container involved. Use /lock hopperin on or /lock hopperout on to allow only transfers in or out, respectively.

Choose a lock type
Section titled “Choose a lock type”The owner can change the lock by looking at it and using one of these commands:
| Command | Access for other players |
|---|---|
/lock private |
Only trusted players and any shared town can use it. |
/lock public |
Anyone can use it; it remains locked against takeover. |
/lock donation |
Players can put items in, but cannot take them out. |
/lock supply |
Players can take items out, but cannot put them in. |
/lock display |
Players can look, but cannot move items. |
/lock password <password> |
Players who enter the password during their session can use it. |
To open a password lock, interact with it and type the password in chat when prompted. The response is not broadcast, and access lasts until you log out.
Example messages for each lock type





Change your lock modes
Section titled “Change your lock modes”Each command toggles its mode and stays in effect until toggled again:
/lock mode nolockstops new containers from locking automatically./lock mode persistcopies the targeted lock’s type, options, and access to subsequent locks./lock mode droptransferputs dropped items into the container you are looking at./lock mode quiethides successful lock command messages.
See Locks for the basics and the lock limit.
If someone cannot open a container
Section titled “If someone cannot open a container”First check /claim info at the container: the player needs access to the land. Then look at the container and use /lock info: the owner can grant access or change the lock type. Sharing a claim does not automatically share its locks. If a hopper cannot move items, check the transfer flags on both containers.