ParticleCloudSpell - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

spell-class: ".targeted.ParticleCloudSpell"
Value Supported
entity true
location true
entity_from_location false

Description:

Targeted Spell that creates a particle cloud at the target location applying potion effects.

Configuration:

Since 4.0 Beta 13 some of these options support dynamic values through numeric or string expressions.

Option Description Type Default Supports expressions
custom-name Name that displays above the cloud. Rich Text true
particle-name

Between 4.0 Beta 13-16 you had to use particle due to an accidental rename.
Particle used to make the cloud. String "poof" true
wait-time-ticks Defines the wait time before the cloud is applied. During this time, the particles only spawn at the center of the cloud. Integer 10 true
duration-ticks Defines the maximum cloud age after wait-time-ticks. Integer 60 true
duration-ticks-on-use Defines the number of ticks the duration of the cloud is reduced when the potion effects are applied. Integer 0 true
reapplication-delay-ticks Defines the number of ticks before applying the potion effects. Integer 60 true
radius Defines the radius of the cloud. Float 5 true
radius-on-use Defines the amount the radius changes upon applying the effect. Normally negative. Float 0 true
radius-per-tick Defines the amount the radius changes per tick. Normally negative. Float 0 true
use-gravity Defines whether the cloud should respect gravity. Boolean false true
can-target-entities Defines whether this spell, when cast directly, should only spawn on a targeted entity. This is checked before can-target-location. Boolean true true
can-target-location Defines whether this spell, when cast directly, should only spawn on a targeted location. This is checked after `can-target-entities˙. Boolean true true
Before 4.0 Beta 17:
potion-effects
String list of potion effects, each following the format: potion duration amplifier ambient particles icon.
- potion: potion type
- duration: integer defining server tick duration
- amplifier: integer
- ambient: boolean
- particles: boolean
- icon: boolean
String List false
Since 4.0 Beta 17:
potion-effects
Potion Effect List true

Particle-specific options:

DustOptions:

Option Type Default Supports expressions
size Float 1 true
dust-color Color "#FF0000" true

DustTransition:

Note

Since 4.0 Beta 17.

Options under a dust-transition section.

Option Type Default
color Color ff0000 (red)
to-color Color 000000 (black)
size Integer 1

ItemStack:

Option Type
material Material

BlockData:

Option Type
material Block Data

Color:

Note

Since 4.0 Beta 17.

Option Type Default
color Integer 0xff0000
Since 4.0 Beta 17
argb-color
ARGB color

Example:

particlecloud:
    spell-class: ".targeted.ParticleCloudSpell"
    particle-name: explosion_normal
    wait-time-ticks: 10
    duration-ticks: 100
    duration-ticks-on-use: 0
    reapplication-delay-ticks: 10
    radius: 3
    radius-on-use: 0
    radius-per-tick: 0.01
    potion-effects:
        - slowness 40 1 true true true
⚠️ **GitHub.com Fallback** ⚠️