> 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/mypet-3.0.md).

# MyPet 3.0

## You can find an update guide here:

{% content-ref url="/pages/G5pONZsk5IVd3LWW7Lv0" %}
[Update to 3.0](/mypet-3/setup/update-to-3.0.md)
{% endcontent-ref %}

## Breaking changes

### Skilltree format

* MyPet now uses the JSON format for all skilltree files
* A new and better editor is also included (doubleclick the jar file)
  * after selecting the skilltree folder (of your choice) it will open a new tab in your default webbrowser
* The skilltree system got completely rewritten so old skilltrees can not be loaded with the new version
  * If you never changed the skilltrees you don't have to do anything
  * You can convert your old skilltrees with the new SkilltreeCreator
    1. open the new SkilltreeCreator
    2. select the folder you want to save your new skilltrees in
    3. open the menu on the top left hand corner
    4. select `Import Legacy Skilltree`
    5. follow the 3 steps of the wizard
    6. hit the save button
    7. upload the new `.st.json` files to the skilltree folder on your server

## Other changes

* Fixed Ender Dragon interactions
* improved EXP calculation system
  * JS files just need the `getExpByLevel(level, info)` function now
    * you don't have to do anything if you use a exp.js file
* pets can level down if they die (can be enabled via the `Allow-Level-Drowngrade` setting)
* some other longstanding bugs got fixed

### Overhaul of the LeashFlag system

* they work like before but there are more and some of them can be configured
* also there are flags that require other plugins
* New flags:
  * `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` flag
    * checks if a mob is below a certain health threshold
    * `BelowHP:<health>[%]`
      * `%` is optional
    * Examples:
      * `BelowHP:2`
      * `BelowHP:2.5`
      * `BelowHP:10%`
  * `Chance` flag
    * 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` flag
    * checks if a player has a skill above a certain level
    * `mcMMO:<job>=<level>:...`
    * if multiple jobs are specified all requirements must be fulfilled
    * Examples:
      * `mcMMO:Mining=10`
      * `mcMMO:Mining=2:Taming=25`
  * `MythicMobs` flag
    * 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 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/mypet-3/mypet-3.0.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.
