> For the complete documentation index, see [llms.txt](https://mossuh.gitbook.io/projects/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mossuh.gitbook.io/projects/plugins/mopets/pet-format/examples.md).

# Examples

## Kran Pet

{% hint style="warning" %}
This example uses PlaceholderAPI variables, so the Actions probably won't work if you try them. You'll need to download the RandomNumber and Math extensions from PlaceholderAPI.
{% endhint %}

```yml
GoldenApple:
  item-info:
    material: GOLDEN_APPLE
Mutton:
  item-info:
    material: MUTTON
KranPet:
  tags: Kran, Pet, Combat
  variables:
    - 'killed_sheeps -> 0'
  upgrades:
    max-level: 200
    cost-per-level: 100
    message:
      progress:
        - 'Exp:& %exp%/%cost%'
      maxed-progress:
        - '&b&lMAXED PET'
  exp:
    PLAYER_KILLS:
      - 'ALL -> 5'
  item-info:
    material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2M1OWVhZDAxZDk3OTIxY2ZmODk3MjlhMjg0YTljNGY1MTcyZDZiZjZmNmRkYjUzMTg0NzMyODlmMGU3YmZkYyJ9fX0=
    data: 0
    name: '&cKran &8| &fPet &7[Lvl. %level%]'
    lore:
      - '&8Combat Pet'
      - ''
      - '&6Golden'
      - '&7When you kill a player, there is a 50%'
      - '&7to drop a golden apple.'
      - '&8Level 100 to secure an golden apple.'
      - ''
      - '&bVenom'
      - '&7Chance of 2.5% to apply poison effect'
      - '&7to your opponent when you''re attacking him.'
      - '&cRequires 1000 killed sheeps to use this ability.'
      - ''
      - '&dRegenerator'
      - '&7When you attack a Player you have &c%math_%level%*0.025%%'
      - '&7to receive regeneration.'
      - ''
      - '&8Killing sheep give you double xp and extra mutton.'
      - '&cKilled Sheeps: %variable_{killed_sheeps}%'
      - ''
      - '%progress%'
  actions:
    boosters:
      mine_experience:
        multiplier: BOOST_PER_LEVEL
        type: PERSONAL
        applicator: MINECRAFT
        boosted: EXPERIENCE
        boost: 0.01
    default:
      KillerSheeps:
        event: PLAYER_KILLS
        requirements:
          - '[event] SHEEP'
        rewards:
          - '[CHANCE -> 100] ADD_EXP -> 5'
          - '[CHANCE -> 100] SET_VARIABLE -> killed_sheeps::%math_%variable_{killed_sheeps}%+1%'
          - '[CHANCE -> 100] CANCEL_DROPS'
          - '[CHANCE -> 100] WORLD_DROP:TARGET -> Mutton[%randomnumber_value_1-3%]'
      Golden:
        event: PLAYER_KILLS
        requirements:
          - '[event] PLAYER'
          - '[eval] %level% >= 100'
        rewards:
          - '[CHANCE -> 100] WORLD_DROP:TARGET -> GoldenApple[1]'
        else:
          - '[CHANCE -> 50] WORLD_DROP:TARGET -> GoldenApple[1]'
      Venom:
        event: PLAYER_ATTACK
        requirements:
          - '[event] PLAYER'
          - '[eval] %variable_{killed_sheeps}% >= 1000'
        rewards:
          - '[chance -> 2.5] EFFECT -> POISON::3::1'
      RegeneratorOne:
        event: PLAYER_ATTACK
        requirements:
          - '[event] PLAYER'
          - '[eval] %level% < 200'
        rewards:
          - '[CHANCE_PER_LEVEL -> 0.025] EFFECT -> REGENERATION::5::1'
        else:
          - '[CHANCE -> 100] EXECUTE_ACTION -> RegeneratorTwo'
      RegeneratorTwo:
        cancel_action: true
        rewards:
          - '[CHANCE_PER_LEVEL -> 0.025] EFFECT -> REGENERATION::5::1'
```


---

# 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://mossuh.gitbook.io/projects/plugins/mopets/pet-format/examples.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.
