Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/content/docs/paper/dev/api/particles.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Particles
description: A comprehensive guide to particle spawning.
slug: paper/dev/particles
version: 1.21.9
version: "26.1"
---

import { Tabs, TabItem, Badge } from "@astrojs/starlight/components";
Expand Down Expand Up @@ -186,7 +186,9 @@ We could also make the smoke go down if we wanted to:
- GLOW_SQUID_INK
- ITEM
- LARGE_SMOKE
- PAUSE_MOB_GROWTH
- POOF
- RESET_MOB_GROWTH
- REVERSE_PORTAL
- SCRAPE
- SCULK_CHARGE
Expand Down Expand Up @@ -765,6 +767,17 @@ The y component of the vector is calculated as `(verticalVelocity - 0.1) * power
- INSTANT_EFFECT
- DRAGON_BREATH

### Simple vertical particles
These particles apply a small, fixed change to vertical velocity (`±0.03`) based on a boolean flag:
- If the flag is `true`, add `0.03` to the vertical velocity.
- If the flag is `false`, subtract `0.03` from the vertical velocity.

Only two particles use this behavior:

- `PAUSE_MOB_GROWTH`: sets the flag to `false` (applies `-0.03`).
- `RESET_MOB_GROWTH`: sets the flag to `true` (applies `+0.03`).


### Splash particles
The `SPLASH` particle uses the `offsetX` and `offsetZ` arguments to determine the particle's velocity vector, if two conditions are met:
1. `offsetY` is `0`
Expand Down
Loading