Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
Nameeffectlib
Syntaxeffectlib [type:<effect>] (origin:<entity>/<location>) (target:<entity>/<location>) (for:<player>) (effect_data:<map>)
Short DescriptionShow custom effects using EffectLib
Full DescriptionDisplays EffectLib effects.

Specify which effect to display using the 'type:' argument, note that effect names are CASE-SENSITIVE.

The origin is the entity/location to play the effect at. If an entity is specified, the effect will follow it.
Defaults to the linked player if unspecified.

Some effects (such as the 'Line' effect) require an origin and a target, an effect's target can be a location or an entity.
If an entity is specified, the effect will follow it.

You can optionally use the 'for:' argument to show the effect to one player only.

EffectLib effects can take additional data to change how the effect looks/works, you can specify that data in the form of a MapTag using the 'effect_data:' argument.
See EffectLib's docs for further information on the available options for each effect: 🔗https://reference.elmakers.com/#effectlib

Note that this should only be used for displaying EffectLib's advanced effect shapes. For more general particle usage, use Command:playeffect.

The effectlib command is ~waitable. Refer to Language:~waitable.
When ~waited for, the command will wait until the effect is done playing.
Related TagsNone
Usage Example
# Use to show a helix of end rod sparks below the linked player for 5 seconds.
- effectlib type:Helix effect_data:[duration=<duration[5s].in_milliseconds>;particle=end_rod;offset=0,-1.5,0]
Usage Example
# Use to show a line of electric sparks between 2 entities for 1 minute.
- effectlib type:Line origin:<[originEntity]> target:<[targetEntity]> effect_data:[duration=<duration[1m].in_milliseconds>;particle=electric_spark]
Usage Example
# Use to show an atom effect at a location, and narrate a message after it's done playing.
- ~effectlib type:Atom origin:<[location]>
- narrate "It's done!"
GroupDepenizen
RequiresDepenizen, EffectLib
Sourcehttps://github.com/DenizenScript/Depenizen/blob/master/src/main/java/com/denizenscript/depenizen/bukkit/commands/effectlib/EffectLibCommand.java#L40