> 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/mypet-3/systems/leashflag.md).

# Leash Flags / Requirements

Leash Flags are the requirements that a mob needs to meet in order to become a pet.

All Leash Flags can be combined with each others but some of them will only apply on some\
mob types, some require other plugins and some will overwrite others depending on the order\
they are written in the [pet-config.yml](/mypet-3/setup/configurations/pet-config.yml.md).

* `Impossible`
  * if this is a requirement every other LeashFlags will be ignored and you can't make this mob type a pet
* `LowHP`
  * mob types with this LeashFlag need to be lower than 10% of it's max health
* `Baby`
  * mob types with this leashflag need to be a baby
* `Adult`
  * mob types with this leashflag need to be grown up
* `Tamed`
  * mob types with this leashflag need to be tamed
  * can only be applied to animals that can be tamed
* `UserCreated`
  * mob types with this leashflag need to be constructed by a player
  * can only be applied Iron Golems
* `Wild`
  * mob types with this leashflag need to be wild
  * can only be applied to Wolves, Ocelots and Iron Golems
* `CanBreed`
  * mob types with this leashflag need to be willing to breed
  * can only be applied to animals that can be bred
* `Angry`
  * mob types with this leashflag need to be angry
  * can only be applied to wolves
* `World` flag
  * `World:<world name>:...`
  * Examples:
    * `World:default`
    * `World:default:nether`
* `Size` flag
  * works only for slimes and magma cubes
  * `Size:min=<min size>:max=<max size>`
    * `min` is an optional parameter
    * `max` is an optional parameter
  * `Size:<exact size>`
  * Examples:
    * `Size:min=2`
    * `Size:min=2:max=4`
    * `Size:max=2`
    * `Size:3`
* `BelowHP`
  * checks if a mob is below a certain health threshold
  * `BelowHP:<health>[%]`
    * `%` is optional
  * Examples:
    * `BelowHP:2`
    * `BelowHP:2.5`
    * `BelowHP:10%`
* `Chance`
  * with this flag you can add a random factor to the leashing
  * `Chance:<chance>`
    * `<chance>` is the chance in percent (%)
  * Examples:
    * `Chance:2`
    * `Chance:50`
* `mcMMO`
  * checks if a player has a skill above a certain level
  * `mcMMO:<job>=<level>:...`
  * if multiple jobs are specified all requirements must be fullfilled
  * Examples:
    * `mcMMO:Mining=10`
    * `mcMMO:Mining=2:Taming=25`
* `MythicMobs`
  * checks if a mob is from a specific MythicMob type
  * `MythicMobs:<type name>:...`
  * Examples:
    * `MythicMobs:SkeletalKnight`
    * `MythicMobs:StaticallyChargedSheep:SkeletonKing`


---

# 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/mypet-3/systems/leashflag.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.
