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

# Experience

As well as player, pets can also gain experience and level up. In each level they can get special [abilities](/mypet-3/skills.md) like [Backpack](/mypet-3/skills/backpack.md).

There are two different ways the experience is converted into levels, etc at the moment.

## Default

`Default` is the default way the experience part is calculated. When `MyPet.LevelSystem.CalculationMode` is set to `default` all pets will level up like normal players would level up like in [Minecraft Pre-Snapshot 12w23a](https://minecraft.gamepedia.com/Experience#Values_of_Beta_1.8_-_Before_1.3.1_.2812w23a.29).

## [JavaScript](/mypet-3/systems/experience/expjs.md)

This is the advanced way where you can create your own level behavior. When `MyPet.LevelSystem.CalculationMode` is set to `JS` or `JavaScript` the plugin uses the `exp.js` in the *MyPet*-folder to calculate the required experience to levelup. In order to use this feature the plugin needs the [rhino.jar](https://github.com/mozilla/rhino/releases) inside the *MyPet* folder.

You can find an example [here](/mypet-3/systems/experience/expjs.md#example) and a further discription [here](/mypet-3/systems/experience/expjs.md). If you have any questions related to this topic please send me a message on [Discord ](http://discord.mypet-plugin.de)in the help channel.


---

# 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/systems/experience.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.
