Skip to content

ParticleCloudSpell

MomoPewpew edited this page Jul 28, 2023 · 8 revisions

Source Code

spell-class: ".targeted.ParticleCloudSpell"

Description:

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

Configuration Options:

Option Description Default Value
custom-name Name that displays above the cloud. null
particle-name Particle used to make the cloud. EXPLOSION_NORMAL
material Material of the particle. ""
size Redstone size. 1
dust-color Redstone color. FF0000
color Potion color. 0xFF0000
wait-time-ticks Wait time ticks. 10
duration-ticks Duration ticks. 60
duration-ticks-on-use Duration ticks on use. 0
reapplication-delay-ticks Reapplication delay ticks. 60
radius Radius of the cloud. 5
radius-on-use Radius on use. 0
radius-per-tick Radius per tick. 0
use-gravity Should the cloud use gravity? false
can-target-entities Should the cloud target entities? true
can-target-location Should the cloud target location? true
potion-effects List of potion effects, check the format below null

Format for the potion-effects:

  • PotionType(string) durationInTicks(int) amplifier(int) ambient(boolean) particles(boolean) icon(boolean)

Spell 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
Clone this wiki locally