-
Notifications
You must be signed in to change notification settings - Fork 148
EffectLibParameters
Nathan Wolf edited this page Jun 15, 2017
·
6 revisions
EffectLib effects can be used via an "effectlib" block. The only required parameter in this block is "class", referring to an EffectLib class.
You can use the "fxdemo" spell in-game to preview all of the available effects, or just browse through the doxygen documentation.
Each effect has its own set of parameters. There are a few common ones:
Name | Values | Description |
---|---|---|
class | Effect Class | The EffectLib class name to use. The "Effect" portion may be omitted. |
duration | Milliseconds | How long this effect should last |
period | #Ticks | How often this effect should run (1 = every tick) |
iterations | Count | How many times this effect should run. Controlled automatically by duration/period |
type | repeating, instant, delayed | The type of effect - most default to repeating |
delay | #Ticks | How long to delay before playing the effect |
effects:
cast:
- location: target
effectlib:
class: AnimatedBall
duration: 5000
You will have to browse the source codeor doxygen docs for now to see individual effect parameters. It is pretty well documented there.
- Home
- FAQ
- Support
- Progression
- Spell Points
- Crafting
- Basic Setup
- Customization
- Resource Pack
- Examples
- Messages and Languages
- Vanity Items
- NPCs
- Magic Blocks
- Magic Mobs
- Putting Images on Maps
- Using MySQL or SQLite
- Placeholders
- Skript
- Regions