> 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/creating-effect/script-types/lightning.md).

# Lightning

This page was last updated for version v1.4.1

## Format

`lightning [args]`

## Arguments

<table data-card-size="large" data-view="cards"><thead><tr><th>Arg</th><th>Description</th><th>Format</th><th>Example</th><th>Aliases</th></tr></thead><tbody><tr><td><code>origin</code></td><td>where the particle spawns from</td><td><code>origin=&#x3C;HEAD/FEET/WORLD></code></td><td><code>origin=feet</code></td><td>*</td></tr><tr><td><code>position</code></td><td>where the particle spawns relative to entity</td><td><code>pos={x=...;y=...;z=...}</code></td><td><code>pos={x=1;z={z}}</code></td><td>pos</td></tr></tbody></table>

## Examples

1. `lightning [origin=head,pos={y=2}]`
2. `lightning [origin=feet,pos={x={RANDOM-};z={RANDOM-}}]`
