> For the complete documentation index, see [llms.txt](https://wiki.tribals.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.tribals.io/tribals.io-wiki/building-elements/lock.md).

# Lock

Snaps to doors, containers, big containers and toolbox.

A lock mechanism for storage structures and doors. Can be assigned a password by its owner. Password must be 3 digits, could be set to between 000-999.

Protected by a [toolbox ](/tribals.io-wiki/structures/toolbox.md)if its placed adjacent to a protected building element.

Locks [storage box](broken://pages/aN5CuTRT3EcrMMzcVCTV), [large storage](/tribals.io-wiki/building-elements/big-storage.md), [toolbox](/tribals.io-wiki/structures/toolbox.md) and [door](/tribals.io-wiki/structures/door.md).

Doesn't support or provide any integrity to the structures around it. \
Decays with 20 units every hour.

Each hit costs 20 durability damage to the attacker's weapon.\
It has 10000 max durability.

[Craftable](/tribals.io-wiki/crafting.md), requires [<img src="/files/FIZSa7n8YWt8zslOqlzt" alt="" data-size="line">](broken://pages/ISVPELS1t2NiO3MBpcT2)50x and [<img src="/files/eGk3BrsFQbYi1HANW4H3" alt="" data-size="line">](broken://pages/oEsacQp8kSmqelweHQCb) 1x.

<table><thead><tr><th width="359">Lock</th></tr></thead><tbody><tr><td><img src="/files/nDpq90SzAukYUKfkDigF" alt=""></td></tr><tr><td>Placeable: Door</td></tr><tr><td>Durability: 10000</td></tr><tr><td>Protectable: Yes</td></tr><tr><td>Protection Cost: 1</td></tr><tr><td>Damage Cost: 20</td></tr><tr><td>Ownership: Yes</td></tr><tr><td>Decay Time: 20</td></tr><tr><td>Provides Integrity: No</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://wiki.tribals.io/tribals.io-wiki/building-elements/lock.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
