Back to mods
ParticleAnimationLib project artwork

CurseForge · Minecraft mod

ParticleAnimationLib

A particle animation library mod to create cool particle effects super easily!

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which ParticleAnimationLib release should I use?

Updated today
Latest stable file ParticleAnimationLib 0.1.3
Game version 1.17.1, 1.21, 1.18.1
Loader Fabric, Quilt

ParticleAnimationLib 0.1.3 targets 1.17.1, 1.21, 1.18.1 with Fabric, Quilt. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is ParticleAnimationLib required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric, Quilt
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does ParticleAnimationLib 0.1.3 need?

ParticleAnimationLib 0.1.3. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by ParticleAnimationLib 0.1.3
required
Matching file found Matched file: [1.21.1] Fabric API 0.116.17+1.21.1

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add ParticleAnimationLib without breaking your instance.

Built for ParticleAnimationLib 0.1.3. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use ParticleAnimationLib 0.1.3. It targets 1.17.1, 1.21, 1.18.1 with Fabric, Quilt; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside ParticleAnimationLib 0.1.3. It opens that exact file at the source.

About this project

What does ParticleAnimationLib add?

particle_animation_library_header

Do you want to create cool particle effects such as cones cubues spheres and vortices but don't know how? Well then this mod is for you! It is mainly a developer utility, but as a player you can play around with the commands, especially to try out the effects before implementing them with code. It is also fully serverside, meaning you won't need it on the client. It is inspirerd by the EffectLib plugin as you may have guessed.

Currently available effects:

  • [3D] Animated Sphere, Sphere, Cuboid, Vortex, Cone
  • [2D] Arc, Line, Animated Circle, Colored and BW Images

At present time this mod is in alpha stage meaning that stuff could change or break between version, so be aware of that (I will try to avoid making such changes tho). Moreover, only a small part of effects planned are available, and the documentation will be relegated mostly to the javadocs for the time being, although I hope to make a wiki in the future! A forge/neoforge version may come in the future, but I first want to get the fabric/quilt one to a beta stage before starting the porting!

The best way to enjoy this mod is with other people on a server, so you can use the code EMALIGHTDEV on Nodecraft for discount!

How to create the effects?

All of the effects are in the effects package and you can create a new effect simply by creating a new effect object or you can use their builder method, kinda like the Block properties.

Then you can use your preferred flavour of #run() method to activate the effect:

//Constructor pseudocode with runFor example
Effect effect = new Effect(ServerWorld world, ParticleEffect effect, Vec3d originPos, int particles, Other stuff...)
effect.runFor(5);

//Builder pseudocode with run and setIterations example (20 ticks = 1 second)
Effect effect = Effect.builder(ServerWorld world, ParticleEffect effect, Vec3d originPos).particles(10).anotherOption(true).build;
effect.setIterations(5*20);
effect.run();

Note: when using the builder you will need to alwasy supply the world particle effect and origin pos to the method, beacuse every animation effect uses them and it is assumed they are not null. You can change them later if you need to. TLDR; you are forced to supply them in order to make the effect work instead of crashing!

<center>

<p align="center"> <img src="https://github.com/Emafire003/ParticleAnimationLib/assets/29462910/f3614984-c6c8-4fd1-ac5b-0ed9adef732a" alt="Demo of some of the effects from version 0.0.1" /> </p>

</center>

Demo of some of the effects from version 0.0.1

How to manipulate the animation effect?

Every effect has its own getters and setters, so you can use those to change the settings before calling the run method. You can also provide a lamda that will execute each tickt that the effect is active to the run/runFor method. For more information about what each setting does please refer to the javadoc of the constructor for that effect.

How do I use the commands?

You can use either pal or particleanimationlib and then use tab-completition to create your effects. They kinda lack documentation except from the names of the arguments, so I suggest to look in the corresponding classes of the effect and see from the javadoc what each thing does. Sorry :P

Note: The commands that take in stuff like rotations and such, change the integer values to "x.5", since the game thinks they are positions. You can get around that by inputting a double instead of an integer like so "x.0" (for example 2.0 or 0.0)

For developers:

Add this library into your build.gradle as a dependency

repositories {
    maven {
        name = "Modrinth"
        url = "https://api.modrinth.com/maven"
        content {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
    modImplementation "maven.modrinth:particleanimationlib:&lt;version&gt;"
}

You can get the version number from the modrinth versions page.

Credit

This mod is based on the bukkit plugin EffectLib by elBukkit team, check it out too! The effects are taken from there and tweaked to be made compatible with modding, occasionally adding extra functionality.

License

This library is available under MIT license

Project description from CurseForge.

Pick your setup

ParticleAnimationLib by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

98 available setups

Showing the newest 12 of 36 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

ParticleAnimationLib versions and loaders

15 of 15 releases match

Looking for an older file? The official CurseForge project page is in Resources.