Bleed Effect - MomoPewpew/MagicSpells GitHub Wiki

Bleed Effect

Source Code

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

Configuration:

Option Description Type Default Value
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
type The type of effect used. The three types are DELAYED, INSTANT, and REPEATING. String REPEATING
material The type of material to use for the effect. Supports block data. String REDSTONE_BLOCK
period How long to wait, in ticks, between each iteration. Integer 4
iterations Number of times to repeat the effect. Integer 25

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