EffectLib Bleed - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

class: Bleed

Description:

This effect makes the target look like they are bleeding, and can optionally apply the hurt effect.

Configuration:

Overridden:

Option Default
type "repeating"
period 4
iterations 25

Other:

Option Description Type Default
hurt Whether or not the "hurt" effect should also be played. Boolean true
height Height/Offset of the effect on the y-axis. Double 1.75
material The type of material to use for the effect. Material "redstone_block"

Example:

BleedExample:
    spell-class: ".instant.DummySpell"
    effects:
      Effect1:
        position: caster
        effect: effectlib 
        effectlib:
            class: BleedEffect
            material: REDSTONE_BLOCK
            hurt: true
            height: 1.75
            type: REPEATING
            period: 4
            iterations: 25