Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
ParticleDrawing
A server-authoritative particle effects library for NeoForge. It plays the animations exported by the ParticleDrawing editor and exposes a Kotlin/Java API for drawing and animating particles directly from code.
Particles are created and owned by the server, while clients evaluate and render them locally. Declarative features such as choreographed groups, life curves and runtime emitters are sent once and evaluated on the client, so a running effect costs little to no per-tick bandwidth.
Features
- Play
.pdrawcfiles from<gameDir>/animations/with a command, or from code throughServerAnimationManager, including runtime variable updates. - Draw lines, circles, discs, curves, polylines, triangles, hexagrams, rectangles, spheres and cuboids
from code with
Draw, with gradient coloring and per-particle entrance delays. - Record a timeline of moves, rotations, scaling, pulses, color fades and expression- or entity-driven
motion on a
ParticleGroup; the client plays it back at render-frame rate. - Declare a trail or an aura once as a runtime emitter and let each client emit along the anchor, per distance travelled or per interval, with deterministic per-particle jitter.
- Spawn up to 256 particle specs per packet, with automatic chunking for the bulk position, velocity, force and track operations.
- Use per-particle textures, sub-rectangle UVs, anisotropic sizes, fixed orientation, additive blending, built-in soft-dot/line shapes and PNG registration that syncs itself to clients, without a resource pack.
- Register effects with movable anchors, control their playback clock, play OGG/WAV audio and light particles dynamically.
Requirements
| Minecraft | Minimum NeoForge | Java |
|---|---|---|
| 26.2 | 26.2.0.59 | 25 |
| 26.3 | 26.3.0.101 | 25 |
| 1.21.1 | 21.1.235 | 21 |
Downloads cover 26.2, 26.3 and 1.21.1.
Installation
Players
- Install NeoForge for Minecraft 26.2, 26.3 or 1.21.1.
- Install the JAR for your game version into
mods/. Modrinth · GitHub Releases - Export an animation from the editor and place the
.pdrawcfile into<gameDir>/animations/. - Use the
/pdrawcommand in game. Animations are loaded on demand, so the game does not have to be restarted after adding or replacing one.
Developers
The refactored releases use a separate Maven Central coordinate for each game version:
// build.gradle.kts
dependencies {
compileOnly("work.nekow:particledrawing-neoforge-26.3:<version>")
localRuntime("work.nekow:particledrawing-neoforge-26.3:<version>")
}
The target-specific coordinates above apply to releases built from the multi-version layout.
Existing older releases retain work.nekow:particledrawing:<version>.
For Minecraft 26.2, replace neoforge-26.3 with neoforge-26.2.
Choose a published <version> for your target on Maven Central. 26.2 · 26.3
To bundle the library in your mod JAR, use
jarJar(implementation("work.nekow:particledrawing-neoforge-26.3:<version>")).
Declare the dependency in META-INF/neoforge.mods.toml as well:
[[dependencies.${mod_id}]]
modId = "particledrawing"
type = "required"
ordering = "AFTER"
A minimal effect:
import net.minecraft.world.phys.Vec3
import work.nekow.particledrawing.api.Draw
import work.nekow.particledrawing.api.ParticleManager
val manager = ParticleManager.of(level)
Draw.circle(manager, Vec3(0.0, 70.0, 0.0), radius = 3.0, count = 80)
.fadeIn(15)
.spin(Vec3(0.0, 1.0, 0.0), Math.PI / 40)
.delay(100)
.stopContinuous()
.fadeOut(20)
More in the getting started guide.
Commands
| Command | Description |
|---|---|
/pdraw particle group ... |
Create and manage named particle groups for data packs and command blocks. |
/pdraw particle add ... |
Add dots, beams, helices, magic circles, spheres and other primitives. |
/pdraw particle emitter ... |
Configure sampling, images, formulas, anchors and particle lifetimes in steps. |
/pdraw particle program ... |
Choreograph anchors, entity following, movement, spin, pulses, variables and per-particle expressions. |
/pdraw animation list |
List the animations available in animations/. |
/pdraw animation play <name> [pos] |
Play an animation at pos, or 3 blocks in front of the player. |
/pdraw animation stop |
Stop every animation and effect playing in the current dimension. |
/pdraw animation camera <name|stop> |
Preview through a camera of a playing animation. |
/pdraw animation var <name> <value> |
Update a function object variable of the playing animations. |
/pdraw animation debug |
Print evaluation time, particle count and timeline of playback. |
/pdraw texture reload |
Reload particle textures from disk (client side only). |
Use group → add → program for choreographed groups. For sampled curves, images and continuous emitters,
configure each step with emitter, then use burst or start. Both work in data pack functions and command blocks. See the command guide for the full
syntax and a ready-to-use magic circle example.
For a short command block example, see the sin curve with the end rod texture.
Use texture=particle:minecraft:end_rod to reuse a vanilla texture while retaining PD animation controls.
Frames follow particle age and lifetime. Use field anchor with expression local to share the group anchor,
and lifetime=80 for a four-second lifetime. Data pack setup and example functions
Documentation
Building from source
git clone https://github.com/NekoWs/ParticleDrawing.git
cd ParticleDrawing
./gradlew build # compile and run the test suite
./gradlew runClient # start a development client
./gradlew runServer # start a development server
The build requires JDK 25. The root build targets 26.3. Build either adapter with ./gradlew -p platforms/neoforge-26.2 build or
./gradlew -p platforms/neoforge-26.3 build. The shared core targets Java 21. Architecture, artifact
coordinates, run directories, and migration notes are in the multi-version guide.
Releasing
mod_version in gradle.properties is the single source of truth. Whenever it changes, the same
commit gets a matching tag (v<mod_version>). Pushing such a tag publishes the artifact to Maven
Central through publish.yml using publishAndReleaseToMavenCentral. Central makes the artifacts
available after validation and synchronization. The tag also runs modrinth.yml to publish each target
and sync this README to the project page. Modrinth
release.yml builds both game targets and creates a
GitHub Release with their runtime JARs, sources JARs, SHA-256 checksums, and notes from commit titles since
the previous tag. ALPHA, BETA, and RC versions are marked as prereleases. All three workflows fail if
the tag name does not match mod_version; there is no release without a tag.
To publish a GitHub Release for an existing tag, open Actions → Publish GitHub Release → Run workflow
and enter v<version>. This checks out the tagged source and runs only the GitHub Release workflow.
It uses the built-in GITHUB_TOKEN with contents: write; no extra secret is required. Rerunning
replaces same-named attachments while preserving existing release notes.
License
Licensed under the Apache License 2.0.


