Skip to content

Commit 3fa84f4

Browse files
committed
Add powered particles chapter
1 parent e9a2299 commit 3fa84f4

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

src/content/docs/paper/dev/api/particles.mdx

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -734,11 +734,6 @@ location. When they reach the player's y level, their vertical velocity will be
734734

735735
If the player is moving vertically, the particles will attempt to match the player's vertical velocity.
736736

737-
### Splash particles
738-
The `SPLASH` particle uses the `offsetX` and `offsetZ` arguments to determine the particle's velocity vector, if two conditions are met:
739-
1. `offsetY` is `0`
740-
2. Either `offsetX` or `offsetZ` are not `0`
741-
742737
### Damage indicator particles
743738
The `DAMAGE_INDICATOR` particle adds `1.0` to the provided `offsetY`.
744739

@@ -751,3 +746,19 @@ The `DUST_PLUME` particle adds `0.15` to the provided `offsetY`.
751746
### Firefly particles
752747
The `FIREFLY` particle uses `offsetY` as the particle's initial y-axis velocity, however, there is 50% chance for the `offsetY`'s
753748
sign to be inverted. This means that the particle will either move up or down, with equal probability.
749+
750+
### Powered particles
751+
The powered particles multiply the particle's velocity vector by the supplied argument.
752+
:::note
753+
The y component of the vector is calculated as `(verticalVelocity - 0.1) * power + 0.1`.
754+
:::
755+
756+
#### List of powered particles
757+
- EFFECT
758+
- INSTANT_EFFECT
759+
- DRAGON_BREATH
760+
761+
### Splash particles
762+
The `SPLASH` particle uses the `offsetX` and `offsetZ` arguments to determine the particle's velocity vector, if two conditions are met:
763+
1. `offsetY` is `0`
764+
2. Either `offsetX` or `offsetZ` are not `0`

0 commit comments

Comments
 (0)