> For the complete documentation index, see [llms.txt](https://machina-1.gitbook.io/machina-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://machina-1.gitbook.io/machina-docs/llamas/guardians.md).

# Guardians

Any of your llamas can be set to **stand guard** over a spot — a sentry that spits at hostile mobs that wander too close.

## Make a guardian

Put a **red carpet** in the llama's decoration slot (open the llama and place it in the carpet/decor slot). The moment it's wearing red, it stops marching with the caravan and takes up guard where it stands.

* Remove the red carpet and it stands down, ready to rejoin the caravan.
* **Sneak + right-click the air** with the Drover's Stick (the halt gesture) also stands down your guardians.

## What it does

A guardian watches a radius around its post. When a hostile comes into range it **spits** — dealing damage, applying **Slowness**, and knocking the target back — then waits out a short cooldown before spitting again.

## Wolf protectors

A guardian llama holds a spot; a **wolf protector** travels with you. Hold the **Drover's Stick** and **right-click your own tamed wolf** to set it as a caravan protector — it then proactively goes after hostiles near the caravan instead of only reacting when you're hit. **Right-click it again** to stand it down.

The wolf keeps all its normal behaviour — it still follows you and fights as a vanilla wolf does; we just hand it a target on a short interval. The reach is `protector.radius` (default 16) in [Configuration](/machina-docs/llamas/configuration.md).

## Tuning

The detection radius, spit damage, Slowness duration, cooldown, and knockback are all configurable under `guard` in [Configuration](/machina-docs/llamas/configuration.md).

| Setting            | Default | What it does                  |
| ------------------ | ------- | ----------------------------- |
| `radius`           | `12`    | Detection radius for hostiles |
| `spit-damage`      | `3.0`   | Damage per spit               |
| `slow-seconds`     | `4`     | Slowness applied on hit       |
| `cooldown-seconds` | `1.5`   | Minimum time between spits    |
| `knockback`        | `0.5`   | Horizontal push on the target |

***

*Caravans is built by* [***Machina***](https://wearemachina.com) *— custom Minecraft plugins and more at* [*wearemachina.com*](https://wearemachina.com)*.*


---

# 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://machina-1.gitbook.io/machina-docs/llamas/guardians.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.
