# Targeted Particle

## Format

`target-particle [args]` or `target [args]`

## Description

It works similarly to [Single Particle](https://treasurestore.gitbook.io/treasure-particles/effects/creating-effect/script-types/particle/single-particle) but has 2 new arguments. Particles with target option can only be spawned with this script.

All the arguments in [Single Particle](https://treasurestore.gitbook.io/treasure-particles/effects/creating-effect/script-types/particle/single-particle) also apply to this.

## Supported Particles

* trail
* vibration

## Arguments

<table data-card-size="large" data-view="cards"><thead><tr><th>Arg</th><th>Description</th><th>Format</th><th>Example(s)</th><th>Default Value</th><th data-type="checkbox">Required</th><th>Aliases</th></tr></thead><tbody><tr><td>target</td><td>target position</td><td><code>target={x=...;y=...;z=...}</code></td><td><code>pos={x={x};y=2;z={z}}</code></td><td>*</td><td>true</td><td>*</td></tr><tr><td>duration</td><td>duration in ticks</td><td><code>duration=&#x3C;INTEGER></code></td><td><code>duration=32</code>, <code>duration={duration}</code></td><td>*</td><td>true</td><td>*</td></tr></tbody></table>

## Examples

1. `target [effect=minecraft:trail,pos={y=1},duration=20,color=#ffffff]`

> *Single white `trail` particle, the particle will move in y-axis by 1 in 20 ticks.*

2. `target [effect=minecraft:vibration,duration={duration},pos={x={RANDOM-};y={RANDOM-};z={RANDOM-}}]`

> *Single `vibration` particle, the particle will move randomly, the duration will be determined by the `duration` variable.*&#x20;
