> For the complete documentation index, see [llms.txt](https://temp-17.gitbook.io/trmenu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://temp-17.gitbook.io/trmenu/menu/structure/tasks.md).

# Tasks

Custom tasks executed at the set interval for the time whenthe menu is opened

## Example

```yaml
#
# Custom menu periodic tasks
#

Tasks:
  # Task identifier
  tikTok:
    # Execution interval (In Ticks)
    period: 20
    # Actions executed
    task:
      - requirement: 'isOperator.'
        actions:
          - 'sound: BLOCK_NOTE_BLOCK_BIT-1-2'
```

## Note

* Each task is made of 3 parts: the identifier, the interval, and the actions.
* After opening the menu, all tasks will start and then stop when the menu is closed.

{% content-ref url="/pages/-MFVxQ0WzF5rAYPLo5SL" %}
[Action](/trmenu/actions/action.md)
{% endcontent-ref %}
