Particles
On this page(5)
particle draws particles only the owner sees. A particle is one burst at a point, or a shape: a circle, a sphere, a line, a star.
- type: particle
particle: FLAME
shape: circle
at: '{target_pos}'
offset: '0, 0.1, 0'
radius: 1.5
count: 24Keys
| Key | Default | What it does |
|---|---|---|
particle | required | A particle name (see the list) |
shape | point | One of the 12 shapes below |
at | {target_pos} | The center (the start of a line, a corner of a rectangle) |
offset | '0, 0, 0' | Moves at |
to | {player_pos} | The end of a line, the other corner of a rectangle (no offset of its own; _center and _top work) |
radius | 1 | An expression |
height | 2 | An expression: a helix's rise, a cone's tip above its base |
turns | 2 | An expression: a helix's and a spiral's turns |
start-angle / end-angle | 0 / 180 | Degrees of an arc: 0 = east, 90 = south, 180 = west, 270 = north |
sides | 6 | The corners of a polygon |
points | 5 | The tips of a star |
inner-radius | 0.4 x radius | The inner corners of a star |
tilt | 0 | Degrees a circle, arc, polygon, star or spiral leans around the east-west axis: 0 = flat on the ground, 90 = standing up |
count | point: 10 particles; shapes: 20 points | 1 to 1000 |
spread | '0, 0, 0' | How far each particle scatters on x, y, z |
speed | 0 | The particle's own speed |
The 12 shapes
| Shape | What it draws | Keys it uses |
|---|---|---|
point | count particles at one spot, scattered by spread | count, spread, speed |
circle | count points on a circle | radius, tilt |
sphere | count points on a sphere | radius |
line | count points from at to to, both ends included | to |
helix | A spiral rising height blocks, turning turns times | radius, height, turns |
rectangle | The flat outline between the corners at and to, at the height of at | to |
area-border | The border of your mob area at the height of at (an offset y lifts it). Nothing without a mob area | |
arc | Part of a circle, from start-angle to end-angle | radius, start-angle, end-angle, tilt |
cone | The surface of a cone: base radius at at, tip height above | radius, height |
polygon | A regular polygon of sides corners | radius, sides, tilt |
star | A star of points tips on radius, inner corners on inner-radius | radius, points, inner-radius, tilt |
spiral | A flat spiral from at out to radius, turning turns times | radius, turns, tilt |
With a shape, count is the number of points on it, one particle each.
Particles that need data
| Particle | Extra keys |
|---|---|
DUST | color: '#RRGGBB' and size (plain number above 0, default 1) |
ENTITY_EFFECT, TINTED_LEAVES | color: '#RRGGBB' |
BLOCK, FALLING_DUST, DUST_PILLAR, BLOCK_CRUMBLE, BLOCK_MARKER | material: a block (STONE, DIAMOND_BLOCK) |
ITEM | material: an item (DIAMOND, GOLDEN_APPLE) |
DUST_COLOR_TRANSITION, VIBRATION, SCULK_CHARGE, SHRIEK and TRAIL are not supported: they are
skipped with a warning. Every other particle needs no data.
Write the modern particle names (DUST, ENTITY_EFFECT, FIREWORK, WITCH, POOF). On a Paper
1.20.4 server the plugin maps them to the old names by itself. A particle that your server version does not have at all logs a warning. On Paper 1.20.4,
ENTITY_EFFECT takes no color: color: is ignored there.
Examples
# A burst of crits on the mob's body.
- { type: particle, particle: CRIT, at: '{target_center}', count: 15, spread: '0.3, 0.4, 0.3', speed: 0.2 }
# A purple dust cloud.
- { type: particle, particle: DUST, color: '#AA00FF', size: 1.5, at: '{target_center}', count: 20, spread: '0.4, 0.4, 0.4' }
# A lightning line from the mob to you, body to body.
- { type: particle, particle: ELECTRIC_SPARK, shape: line, at: '{target_center}', to: '{player_center}', count: 30 }
# A golden star on the ground.
- { type: particle, particle: DUST, color: '#FFD700', shape: star, at: '{target_pos}', offset: '0, 0.1, 0', radius: 2, points: 5, count: 50 }
# A standing hexagon around the mob.
- { type: particle, particle: ELECTRIC_SPARK, shape: polygon, at: '{target_center}', radius: 1.5, sides: 6, tilt: 90, count: 36 }
# A rising soul helix.
- { type: particle, particle: SOUL_FIRE_FLAME, shape: helix, at: '{target_pos}', radius: 0.8, height: 2.5, turns: 3, count: 60 }
# The border of your whole mob area.
- { type: particle, particle: END_ROD, shape: area-border, at: '{area_center}', offset: '0, 0.2, 0', count: 200 }
# A block particle.
- { type: particle, particle: BLOCK, material: DIAMOND_BLOCK, at: '{target_pos}', count: 30, spread: '0.3, 0.3, 0.3' }Limits
enchants.max-particles-per-tick of modules/sword/config.yml (300 as shipped) caps the particles
sent to one player in one tick. The points past it are not sent. A big shape with count: 1000 in
a loop hits that cap fast: see Limits and Performance.
The player's core.particles setting hides enchant particles for that player.