EffectLib🔗
Minimal required version: 10.3
If you install this plugin on your server you will be able to play particle effects on NPCs and locations.
You can also use the particle action to trigger particle.
Info
EffectLib is not a normal plugin, it's a powerful developer tool - there are no official docs. However, the Magic plugin has a wiki for EffectLib. It does contain a few magic specific settings though so please don't be confused if some stuff does not work. There is also a magic editor with autocompletion for EffectLib.
effectlib: #(1)!
farmer: #(2)!
class: VortexEffect #(3)!
iterations: 20 #(4)!
particle: crit_magic
helixes: 3
circles: 1
grow: 0.1
radius: 0.5
pitch: -60 #(9)!
yaw: 90 #(10)!
interval: 30 #(8)!
checkinterval: 80 #(11)!
npcs: NPC1,NPC2 #(5)!
locations: 171;72;-127;world #(6)!
conditions: '!con_tag_started,!con_tag_finished' #(7)!
- All effects need to be defined in this section.
- Each effect is defined as a separate subsection. You can choose any name for it.
- Any EffectLib effect class.
- This and all following options until
intervalare EffectLib parameters. You can find them in the 3rd party documentation linked above. - A list of all NPCs on which this effect is displayed. This section is optional.
- A list of all locations on wich the effect is displayed. Optional.
- The conditions that must be true so that the player can see this effect.
- Controls after how many ticks the effect is restarted. Optional, default: 100 ticks
- Controls the vertical direction of the effect.
- Controls the horizontal direction of the effect.
- Controls how often the conditions should be checked (in ticks). Optional, default: 100 ticks
Actions🔗
Particle🔗
Context:
Syntax: particle <effect> [loc] [target] {private}
Description: Load an effect defined in effects section and display it on player's location.
| Parameter | Type | Explanation |
|---|---|---|
| effect [Effect] |
Required | The effect to use. |
| loc [Location] |
Optional [Null] |
Source location, if not the player's location should be used. |
| target [Location] |
Optional [Null] |
Target location for the effect. |
| private [Boolean] |
Flag [false, true] |
Display the effect only for the player it is ran for. |
When you want to fixate the effect's location to the player's start position you have to use loc:%location%.
effects:
beton:
class: HelixEffect
iterations: 100
particle: smoke
helixes: 5
circles: 20
grow: 3
radius: 30
pointer:
class: LineEffect
actions:
playEffect: "particle beton loc:100;200;300;world;180;-90 private"
showPointer: "particle pointer target:100;200;300;world"