Minecraft EffectLib mod 2026 download
logo
minecraft mod EffectLib

EffectLib

Game Version: 1.16
Total Downloads: 93,241
Updated: Mar 30, 2021
Created: Apr 21, 2014
Download EffectLibDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
EffectLib 9.0 release 191.43 KB Mar 30, 2021 1.16 2,951 download EffectLib EffectLib 9.0 releaseDownload
EffectLib 6.4 release 190.67 KB Nov 10, 2020 1.16 4,908 download EffectLib EffectLib 6.4 releaseDownload
EffectLib 6.2 release 195.42 KB Sep 24, 2019 1.14 10,343 download EffectLib EffectLib 6.2 releaseDownload
EffectLib 6.1 release 194.86 KB Aug 10, 2018 1.12 14,630 download EffectLib EffectLib 6.1 releaseDownload
EffectLib 6.0 release 193.46 KB Jul 23, 2018 1.12 1,146 download EffectLib EffectLib 6.0 releaseDownload
EffectLib 5.9 release 204.56 KB Mar 29, 2018 1.12 6,665 download EffectLib EffectLib 5.9 releaseDownload
EffectLib 5.8 release 203.60 KB Mar 16, 2018 1.12 897 download EffectLib EffectLib 5.8 releaseDownload
EffectLib 5.7 release 198.02 KB Mar 12, 2018 1.12 418 download EffectLib EffectLib 5.7 releaseDownload
EffectLib 5.5 release 190.64 KB Oct 11, 2017 1.12 5,224 download EffectLib EffectLib 5.5 releaseDownload
EffectLib 5.4 release 191.03 KB Mar 10, 2017 1.11 6,102 download EffectLib EffectLib 5.4 releaseDownload
EffectLib 5.2 release 195.51 KB Nov 17, 2016 1.10 3,332 download EffectLib EffectLib 5.2 releaseDownload
EffectLib 5.1 release 195.38 KB Oct 24, 2016 1.10 706 download EffectLib EffectLib 5.1 releaseDownload
EffectLib 5.0 release 194.98 KB Jun 9, 2016 1.10 3,198 download EffectLib EffectLib 5.0 releaseDownload
EffectLib 4.2 release 193.65 KB Mar 28, 2016 1.9 3,537 download EffectLib EffectLib 4.2 releaseDownload
EffectLib 4.1 release 192.08 KB Mar 6, 2016 1.9 1,005 download EffectLib EffectLib 4.1 releaseDownload
EffectLib 4.0 release 191.88 KB Mar 1, 2016 1.8.1 2,347 download EffectLib EffectLib 4.0 releaseDownload
EffectLib 3.8 release 129.88 KB Dec 4, 2015 1.8 4,391 download EffectLib EffectLib 3.8 releaseDownload
EffectLib 3.7 release 200.73 KB Oct 27, 2015 1.8 1,749 download EffectLib EffectLib 3.7 releaseDownload
EffectLib 3.6 release 200.36 KB Oct 19, 2015 1.8.1 731 download EffectLib EffectLib 3.6 releaseDownload
EffectLib 3.5 release 128.42 KB Oct 14, 2015 1.8 951 download EffectLib EffectLib 3.5 releaseDownload
EffectLib 3.4 release 197.87 KB Jun 25, 2015 1.8.1 3,222 download EffectLib EffectLib 3.4 releaseDownload
EffectLib 3.2 release 197.53 KB Apr 22, 2015 1.8 1,729 download EffectLib EffectLib 3.2 releaseDownload
EffectLib 3.0 release 130.65 KB Jan 16, 2015 1.8.1 2,611 download EffectLib EffectLib 3.0 releaseDownload
v2.0 release 99.78 KB Aug 18, 2014 1.7.4 4,243 download EffectLib v2.0 releaseDownload
EffectLib 1.6 release 90.60 KB Jul 9, 2014 1.7.4 1,516 download EffectLib EffectLib 1.6 releaseDownload
v1.5-SNAPSHOT release 89.57 KB Jul 1, 2014 CB 1.7.2-R0.3 795 download EffectLib v1.5-SNAPSHOT releaseDownload
v1.4 release 125.80 KB Apr 27, 2014 CB 1.7.2-R0.3 1,613 download EffectLib v1.4 releaseDownload
v1.2 release 108.94 KB Apr 26, 2014 CB 1.7.2-R0.3 331 download EffectLib v1.2 releaseDownload
v1.1 release 44.66 KB Apr 24, 2014 CB 1.7.2-R0.3 317 download EffectLib v1.1 releaseDownload
v1.0 release 39.21 KB Apr 23, 2014 CB 1.7.2-R0.3 302 download EffectLib v1.0 releaseDownload
v0.5-BETA release 32.02 KB Apr 22, 2014 CB 1.7.2-R0.3 260 download EffectLib v0.5-BETA releaseDownload
v0.4-BETA beta 31.92 KB Apr 22, 2014 CB 1.7.2-R0.3 361 download EffectLib v0.4-BETA betaDownload
v0.3-BETA beta 26.85 KB Apr 22, 2014 CB 1.7.2-R0.3 211 download EffectLib v0.3-BETA betaDownload
v0.2-BETA beta 24.94 KB Apr 21, 2014 CB 1.7.2-R0.3 160 download EffectLib v0.2-BETA betaDownload
v0.1-ALPHA alpha 15.25 KB Apr 21, 2014 CB 1.7.2-R0.3 339 download EffectLib v0.1-ALPHA alphaDownload

Description

Share this:

EffectLib

Wiki https://github.com/elBukkit/EffectLib/wiki

Support on Discord: https://discord.gg/fWJ3W3kMjG

Forum (Outdated): http://forums.bukkit.org/threads/effectlib-manage-your-effects-the-nice-way.259879/

Description

THIS PLUGIN HAS NO USE FOR SERVER-OWNERS

This library is a possibility for developers to out-source their effect-managment. This library comes with a handy collection of customizable effects, but you can easily add your own effects and manage them in the library.

Usage

  1. See documentation for Maven-based instructions.
  2. OR Add the EffectLib.jar to you project and to the plugins in your server.
  3. Create a new EffectManager to handle your effects.
    EffectManager em = new EffectManager(plugin);
    
  4. Create a new Effect and start it.
    Effect effect = new BleedEffect(em); effect.setEntity(target); effect.start();
    
  5. Dispose of the EffectManager after when you are completely done with it.
    em.dispose();
    

Demo

This demo creates a bleed-effect when a player joins. After 15 seconds, the effect runs out and the callback is called, that kills the player and sends them a message.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.yourdomain.yourplugin;

import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.plugin.java.JavaPlugin;

import de.slikey.effectlib.EffectManager;
import de.slikey.effectlib.effect.BleedEffect;

public class EffectLibTest extends JavaPlugin implements Listener {
    private EffectManager effectManager;

    @Override
    public void onEnable() {
        Bukkit.getPluginManager().registerEvents(this, this);

        // Initialize a new EffectManager
        effectManager = new EffectManager(this);
    }

    @Override
    public void onDisable() {
        // Dispose of the EffectManager
        effectManager.dispose();
        HandlerList.unregisterAll((Listener) this);
    }

    @EventHandler
    public void onPlayerJoin(final PlayerJoinEvent event) {
        // Create the Effect and attach it to the Player
        BleedEffect bleedEffect = new BleedEffect(effectManager);
        bleedEffect.setEntity(event.getPlayer());

        // Add a callback to the effect
        bleedEffect.callback = new Runnable() {

            @Override
            public void run() {
                event.getPlayer().sendMessage("You bled out..");
                event.getPlayer().setHealth(0d);
            }

        };
        // Bleeding takes 15 seconds
        // period * iterations = time of effect
        bleedEffect.iterations = 15 * 20;
        bleedEffect.start();
    }
}

Effects Control

All effects can attach to a Location (setLocation) or an Entity (setEntity). Some Effects (like LineEffect) can work with two locations- use setTargetEntity and setTarget to control the "second point".

You can cancel all running effects of an EffectManager by cancel(boolean callback).

Configuration-Driven Effects

There is also a Configuration-driven interface you may use, EffectManager.start.

You may pass in the Effect class as a String, and additional parameters as a ConfigurationSection. This can be a fully-qualified path (for custom externally-defined Effects) or a simple class name for the builtin classes. For example:

summon:
 class: VortexEffect
 iterations: 4
 particle: smoke
 helixes: 16
 circles: 7
 grow: 0.1
 radius: 1

And then to use it, something like this:

ConfigurationSection effectConfig = getConfig().getConfigurationSection("summon");
String clasName = effectConfig.getString("class");
effectManager.start(className, effectConfig, player);

There are several different versions of the start() method as of 3.4, the longest one would look like this:

effectManager.start(className, effectConfig, player.getLocation(), player, null, null, null);

The latter three parameters are optional, the two "target" parameters used only in certain FX. The last line can be used for the TextEffect to have parameterizable text messages- for instance, if you wish to insert the Player's name in a Configuration-drive text message.

Current Effects

  • ArcEffect – Create architectual correct arc of particles
  • AtomEffect – Create the orbital-model of the atom
  • BigBangEffect – Create a large cluster of fireworks.
  • BleedEffect – Let the target entity bleed.
  • ConeEffect – Cast a cone in all possible directions
  • EarthEffect – Create a model of the Earth
  • DnaEffect – Create DNA molecule
  • ExplodeEffect – Create a explosion at location.
  • FlameEffect – Let the target entity burn.
  • FountainEffect – Create a foundtain for you well
  • GridEffect – Customizable grid for you signwall
  • HelixEffect – Create a customizable static helix.
  • JumpEffect – Forces an entity to jump naturally.
  • LineEffect – Draw line from A to B
  • LoveEffect – The target entity is in love.
  • MusicEffect – Circle of notes appeares above the entity.
  • MusicEffect – Circle of notes appeares at a location.
  • ShieldEffect – Spherical Shield around an entity.
  • SkyRocketEffect – Foces an entity to fly into the sky.
  • SmokeEffect – Let the target entity smoke.
  • StarEffect – Create fully customizable 3D star
  • TextEffect – Create particle-text with custom font, size and text
  • TraceEffect – Create a trace along an entitys path.
  • TurnPlayerEffect – Forces the player to turn in a circle.
  • VortexEffect – Create a vortex of particles at location
  • WarpEffect – Create a warp-effect around an entity
  • WaveEffect – Create waves with surf.
  • Feel free to send me your effects if you have coded up some custom ones of your own!

All effects have the ability to be changed. Let the effect repeat, increase duration or change period of iterations.

Any Effect will work when attached to a static location, or to an Entity. If both are provided, it will attach at the target Location, but move relative to that along with the entity (great for tagging hit locations, or attaching to an Entity's head or other body part specifically!)

Source

Get the source on GitHub!

 

https://github.com/elBukkit/EffectLib

Comments

Add a comment