ParticleDrawing
ModA high-performance particle animation library.
Description
ParticleDrawing
ParticleDrawing is a particle effects library for Minecraft on NeoForge. Use /pdraw in chat, command
blocks, or data pack functions to draw shapes, animate particle groups, and run emitters. Mod
developers can build effects with the Kotlin and Java API. The mod also plays .pdrawc animations
exported from the ParticleDrawing editor.
The server sends group animations, lifetime curves, and client-side emitter configurations once. Clients evaluate and render those effects locally. Bulk spawn, velocity, force, and tracking updates are split into packets automatically.
Built-in soft dots and lines work without a custom resource pack, as do vanilla particle textures. ParticleDrawing also supports custom PNG textures, per-particle UVs, independent width and height, fixed orientation, additive blending, and dynamic lighting.
Installation
| Minecraft | Minimum NeoForge | Java |
|---|---|---|
| 1.21.1 | 21.1.235 | 21 |
| 26.2 | 26.2.0.59 | 25 |
| 26.3 | 26.3.0.101 | 25 |
- Install NeoForge for your Minecraft version.
- Place the matching ParticleDrawing JAR in
mods/. In multiplayer, install the same ParticleDrawing version on the server and each client. - In game, run
/pdraw helpwith an account that has command permissions.
Download from Modrinth or GitHub Releases.
Commands
The commands below draw a named ring and delete it. In chat, add a leading /.
pdraw particle draw circle as ring at ~ ~1 ~ radius 3 count 96 look color aqua
pdraw particle delete group ring
| Command | Description |
|---|---|
/pdraw particle draw … |
Draw one or more shapes, name the group, and append then actions. |
/pdraw particle emitter … |
Set sampling, spawn and motion formulas, appearance, and emission timing. |
/pdraw particle template / use … |
Save an emitter declaration and instantiate it with overrides. |
/pdraw particle start / burst / stop … |
Start continuous emission, emit a single burst, or stop spawning. |
/pdraw particle clear / delete … |
Clear live instances, or remove the named emitter, group or template. |
/pdraw particle advanced … |
Inspect recipes, edit live emitters, or append actions to an existing group. |
/pdraw animation … |
List, play, stop, and inspect .pdrawc animations. |
/pdraw camera … |
Control a free camera for recordings and cinematics. |
/pdraw texture reload |
Hot-reload particle textures from disk. |
/pdraw particle field … |
Configure particle force fields. |
Combine these options to shape and animate an effect.
drawacceptsdot,field,line,beam,helix,circle,disc,triangle,hexagram,rect,sphere,cuboid,text,sinandexpr.staggerandenter fade|grow|fade_growanimate each particle's entrance.then move|spin|delay|recolor|fade_out|follow …builds a group timeline.lookcontrols color, size, texture, glow, blending and scene-aware effects.emitteracceptssample,spawn,move,life,rate,window,collide,subemit,with environment,with probeandwith on.
Press Tab for available arguments, or run /pdraw help cmd draw or /pdraw help cmd emitter
for command-specific help. Particle command syntax and examples
API
Add Maven Central to your Gradle repositories and use the artifact for your Minecraft version.
The Kotlin DSL example targets Minecraft 26.3. Replace <version> with a published ParticleDrawing version.
// build.gradle.kts
dependencies {
compileOnly("work.nekow:particledrawing-neoforge-26.3:<version>")
localRuntime("work.nekow:particledrawing-neoforge-26.3:<version>")
}
# META-INF/neoforge.mods.toml
[[dependencies.${mod_id}]]
modId = "particledrawing"
type = "required"
ordering = "AFTER"
Minecraft 1.21.1 · Minecraft 26.2 · Minecraft 26.3
Call the drawing API on the server thread with a ServerLevel. The ring in this example lasts 100 game ticks.
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, lifetime = 100)
Drawcreates aParticleGroupfor shapes such as lines, curves, polylines, polygons, spheres, cuboids, and text made of particles.ParticleBatchmanages particle streams whose members are added and removed over time.ParticleManager.emitter(anchor)creates runtime emitters that spawn by distance or time interval.Effectsregisters and plays named effects with movable anchors and playback controls.Animation.create { … }builds an animation in code using the same data model as.pdrawc.
To bundle ParticleDrawing in your mod, use the following Gradle dependency declaration.
jarJar(implementation("work.nekow:particledrawing-neoforge-26.3:<version>"))
Older releases use work.nekow:particledrawing:<version>. Multi-version layout and migration
Editor playback
The editor saves projects as .pdraw and exports .pdrawc files for in-game playback. Animations can
include timeline tracks, camera tracks, OGG/WAV audio, and scripted function objects.
- Export a
.pdrawcfile from the ParticleDrawing editor. - Put the file in
animations/under the game directory or the dedicated server's working directory. - In chat, run
/pdraw animation play meteorto playmeteor.pdrawc.
Files are loaded on demand, so you can add or replace them while the game is running. Run
/pdraw animation list to list animations or /pdraw animation stop to stop them in the current dimension.
Use /pdraw animation var <name> <value> to update a script variable, /pdraw animation debug to check
playback status, or /pdraw animation camera <name> to preview a camera track in single-player.
From code, use ServerAnimationManager to play an animation,
update variables, or stop playback. Animation playback
Documentation
- Documentation index
- Getting started
- Particle commands
- API reference
- Kotlin and Java examples
- Animation playback
- Multi-version layout
- Known issues
- Code health and redundancy audit
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 root build targets Minecraft 26.3 and requires JDK 25. Use
./gradlew -p platforms/neoforge-26.2 build or ./gradlew -p platforms/neoforge-26.3 build
to build a specific 26.x target. The Minecraft 1.21.1 target
(./gradlew -p platforms/neoforge-1.21.1 build) and the standalone core
(./gradlew -p shared/core build) target Java 21.
Releasing
Set mod_version in gradle.properties and tag the same commit v<mod_version>. Pushing the tag
triggers Maven Central publication (publish.yml), Modrinth publication (modrinth.yml), and the
GitHub Release (release.yml). Each release workflow checks that the tag matches mod_version.
To publish a GitHub Release for an existing tag, open Actions → Publish GitHub Release → Run workflow
and enter v<version>. The workflow uses the built-in GITHUB_TOKEN with contents: write.
Rerunning it replaces same-named attachments and preserves the release notes.
License
Licensed under the Apache License 2.0.
Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
CraftyAI
A free, intelligent AI companion for Minecraft. Talk naturally, scan blocks, and more in chat!
OpenPaC BlueMap - Remapped
Syncs your Open Parties and Claims land claims to your BlueMap maps.
Silk Armor
Adds silk cloth and armor
Cobblemon: Stylish Battles
Adds an animation before the battle!
Train's Tweaks
Configure hardcoded aspects of experience, rarity, mob drops, and more
Custom Durability
A fabric mod that allows for changing the durabilities of all items!