> For the complete documentation index, see [llms.txt](https://wiki.mypet-plugin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.mypet-plugin.com/setup-guide/skilltree-creation/creating-custom-skilltrees/skills/behavior.md).

# Behavior

Change the behavior of your Pet.

With this skill you can change the behavior of the pet. There are 5 possible behavior-modes:

* `friendly` -> the pet doesn't fight, even when being attacked.
* `normal` -> behaves like a normal tamed wolf.
* `aggressive` -> attacks everything within 15 blocks of the owner.
* `farm` -> attacks every **monster** within 15 blocks of the owner.
* `raid` -> similar to normal behavior, but the pet doesn't attack players and their minions.
* `duel` -> pets will attack other pets with active duel behavior within a 5 block radius.

To toggle the behavior mode, use the command `/petbehavior [`**`normal`**`/`**`friendly`**`/`**`aggressive`**`/`**`farm`**`/`**`raid`**`/`**`duel`**`]`.

### Demonstration <a href="#demonstration" id="demonstration"></a>

![](https://wiki.mypet-plugin.com/~gitbook/image?url=https%3A%2F%2F3869790376-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fassets%252F-LXhRZyUgDZpPIQrYK1o%252F-LXxWKQYf9wXYs_gqnV-%252F-LXxWfDqndwXgczPNHJ5%252Fbehavior.gif%3Falt%3Dmedia%26token%3D3c0f82ff-8860-4f47-ba65-297d5f4e480b\&width=768\&dpr=4\&quality=100\&sign=13ff9d76\&sv=2)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.mypet-plugin.com/setup-guide/skilltree-creation/creating-custom-skilltrees/skills/behavior.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
