> 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 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.mypet-plugin.com/setup-guide/skilltree-creation/creating-custom-skilltrees/skills/behavior.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.
