# Repeating Enchantments

{% hint style="info" %}

#### Repeating Enchantments only works for Worn Armor and held item

{% endhint %}

Setting enchantment type to '**REPEATING**', you unlock access to another flag for each level '**time: (seconds)**', which allows a set period in-between each enchantment activation:

```
feed:
  display: '%group-color%Feed'
  description: 'Chance to feed 1 bar of food every few seconds.'
  applies-to: 'Helmets'
  type: 'REPEATING'
  group: 'SIMPLE'
  applies:
    - ALL_HELMET
  levels:
    1:
      chance: 30
      cooldown: 10
      time: 5
      effects:
        - 'MESSAGE:&aYou have been fed!'
        - 'ADD_FOOD:1'
```

This also allows setting **chances for activation** as shown in this example:

```
     chance: 30
```

each time it runs (in this case, every 5 seconds), it has 30/100 chance (30%) to activate and run.

The REPEATING type allows setting `cooldown` as well, so in case the timer activated it and chance allowed it to run, it will not be ran for the next (*in this case 10 seconds*).


---

# Agent Instructions: 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:

```
GET https://ae.advancedplugins.net/enchantments/repeating-enchantments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
