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.

Commands

Start a new static effect

/trp static start id effect

id Unique id for the static effect

effect Name of the effect

Stop a static effect

/trp static stop id

id Id of the static effect

Teleport to a static effect

/trp static tp id

id Id of the static effect

Teleport a static effect to your location

/trp static tphere id

id Id of the static effect

Change the effect of a static effect

/trp static update id effect

id Id of the static effect

effect Name of the new effect

Example Effect

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]

Last updated