> For the complete documentation index, see [llms.txt](https://pacificminer3e2wfrgtb.gitbook.io/mineraze/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pacificminer3e2wfrgtb.gitbook.io/mineraze/survival/container-protection.md).

# Container Protection

Protect your containers such as chests, furnaces, and doors to ensure people cannot steal your items! Want to protect your buildings and land? Check out the "[Towns](/mineraze/survival/towns-land-claim.md)" page!

Cooperating with your friends might mean that you will share doors, chests, and many other locked containers. In order for you to share your locked containers with other players, you must trust them to the containers. Learn how below.

{% hint style="info" %}
Hide messages when opening containers with **/cnospam**\
**Add your friend to all containers with /trust**
{% endhint %}

### **Containers**

Containers such as chests are automatically locked upon placing them.

#### 🔐 Creating Protections

**/lock**\
Creates a **private** protection that only you can access.\
You can also add other players or groups:

* `/lock` → Locks the block for you only
* `/cprivate Steve` → Adds Steve to the lock
* `/cprivate @Steve` → Adds Steve with permission to manage the lock
* `/cprivate Alex g:moderator` → Adds player Alex and the "moderator" group

**/cpublic**\
Creates a **public** protection. Anyone can use it, but only you can remove or modify it.

**/cdonation**\
Anyone can **put items in**, but cannot take anything out.

**/cdisplay**\
Anyone can **view** items, but cannot remove or add anything.

**/cpassword**\
Creates a **password-protected** lock. Use `/cunlock` to unlock it with the password.

**/cdefault \<player>**\
Automatically adds the given player to all new protections you create.

***

#### 🛠️ Managing Protections

**/cmodify**\
Add or remove users/groups to an existing lock.

Examples:

* `/cmodify Steve` → Gives Steve access
* `/cmodify -Steve` → Removes Steve
* `/cmodify @Steve` → Gives Steve admin access
* `/trust add Steve` → Gives Steve access to **all** your containers.

**/cremove** or **/unlock**\
Removes the protection from the block.

**/cinfo**\
Punch the protected block to see info on who owns it and who has access.

**/climits**\
Shows how many protections you’ve used and how many you’re allowed.

***

#### ⚙️ Protection Settings (Flags)

Flags let you customize how your protections behave:

* **/credstone** – Allow redstone to open protected blocks
* **/cautoclose** – Makes doors auto-close after opening
* **/chopper on** – Allow hoppers to put in and take out items
* **/lwc flag hopperin** – Allow hoppers to insert only
* **/lwc flag hopperout** – Allow hoppers to extract only

***

#### 🧰 Extra Modes

**/cpersist**\
Keep your last protection command active (great for locking many chests in a row).

**/cnolock**\
Temporarily disables auto-locking when placing containers.

**/cnospam**\
Hides LWC messages in chat when creating protections.

**/cdroptransfer**\
Send dropped items directly to a selected chest.\
Use `/cdroptransfer select` to choose the target chest.

***

That’s it! You can always type `/lwc` in-game to get help or see available commands.

<figure><img src="/files/loGLjFmcQY6bJXcHJLC7" alt=""><figcaption></figcaption></figure>
