> For the complete documentation index, see [llms.txt](https://zypec.gitbook.io/particles/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zypec.gitbook.io/particles/effects/static-effects.md).

# Static Effects

This page was last updated for version v1.4.1

## Description

It is possible to create effects in your world that work continuously in a fixed position. For this, the effect must have a tick handler with a `STATIC` event. In effects run as static, only `STATIC` and `NONE` event tick handlers can operate.

{% hint style="warning" %}
Without at least one `STATIC` event tick handler, you cannot run the effect static.
{% endhint %}

## Commands

<details>

<summary>Start a new static effect</summary>

**/trp static start** `id` `effect`

**`id`** Unique id for the static effect

**`effect`** Name of the effect

</details>

<details>

<summary>Stop a static effect</summary>

**/trp static stop** `id`

**`id`** Id of the static effect

</details>

<details>

<summary>Teleport to a static effect</summary>

**/trp static tp** `id`

`id` Id of the static effect

</details>

<details>

<summary>Teleport a static effect to your location</summary>

**/trp static tphere** `id`

`id` Id of the static effect

</details>

<details>

<summary>Change the effect of a static effect</summary>

**/trp static update** `id` `effect`

`id` Id of the static effect

`effect` Name of the new effect

</details>

## Example Effect

{% tabs %}
{% tab title="effects.yml" %}

```yaml
effects:
  love-you:
    display-name: "%love-you%"
    permission: "%text-effects%"
    icon:
      material: oak_hanging_sign
    interval: 40
    on-tick:
      elytra:
        event: ELYTRA
        scripts:
          - text [effect=minecraft:heart,origin=feet,pos={y=-1},text="ILY",vertical=false,billboard=vertical,font="Arial Black",scale=0.25]
      static:
        event: STATIC
        scripts: # Only this script will be executed for static effects
          - text [effect=minecraft:heart,origin=feet,pos={y=-1},text="ILY",vertical=true,billboard=vertical,font="Arial Black",scale=0.25]
```

{% endtab %}
{% endtabs %}
