# Chest Locks

Locks are a powerful feature in Theatria that allow you to secure your items and spaces from other players. By using the `/lock` and `/unlock` commands.

***

## **What is a lock?**

* **Personal Security**: When an object is locked, only the player who locked it can open or interact with it.
* **Compatibility**: Locks can be applied to:
  * **Chests**: Keep your valuable items safe.
  * **Doors**: Secure your base or private rooms.
  * **Trapdoors**: Protect secret entrances or hidden areas.

***

## **How to Use Locks**

### Locking an Item

To lock a chest, door, or trapdoor:

1. Stand near the object you want to lock.
2. Type the following command:

   ```
   /lock
   ```
3. Punch the object you want to lock.
4. A confirmation message will appear, letting you know the object has been successfully locked.

Now, only you can open or use the locked object. Any other players attempting to access it will be denied.

### Unlocking an Item

If you decide to remove the lock:

1. Stand near the object you want to unlock.
2. Type the following command:

   ```
   /unlock
   ```
3. Punch the object you want to unlock.
4. A confirmation message will appear, letting you know the object has been successfully unlocked.

Once unlocked, the object will be accessible to all players.

***

## **Additional Notes**

* **Lock Removal by Admins**: In case of abandoned locks or disputes, server admins can manually remove locks. Contact a staff member if you need assistance.
* **Limitations**: Each player has a limit on the number of locked objects, based on rank. Review our list of [Ranks](https://github.com/JL-III/Theatria/blob/master/docs/gameplay-features/ranks/README.md) to learn more.

***

[Gameplay Features](/minecraft/gameplay-features.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.playtheatria.com/minecraft/gameplay-features/chest-locks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
