> For the complete documentation index, see [llms.txt](https://edseries-plugins.gitbook.io/p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edseries-plugins.gitbook.io/p/features/enchantments/custom-enchantments/actions/loop.md).

# Loop

Action to loop actions X times.

## Tags

### `loop(<times>,<seconds-per-time>,<variable>) action` -> The times means the times that it will be looped. The seconds-per-time means the seconds between each loop is processed. For example if there is 1 second, it will do each loop time every second. And the variable is the variable name to get %variable.times% to get the current time where the loop is currently.

## Examples

<pre class="language-yaml" data-overflow="wrap" data-full-width="false"><code class="lang-yaml"><strong>loop(5,1,loopvar) command &#x3C;value>edp msg %player% Hello %player%! This is the %loopvar.times% message!&#x3C;/value>
</strong></code></pre>
