Interface EffectData

Effect data.

interface EffectData {
    amplifier?: number;
    duration: number;
    effectType: string | EffectType;
    showParticles?: boolean;
}

Properties

amplifier?: number

The strength of the effect.

duration: number

Amount of time, in ticks, for the effect to apply. There are 20 ticks per second. Use TicksPerSecond constant to convert between ticks and seconds. The value must be within he range [0, 20000000].

effectType: string | EffectType

Type of effect to add to the entity.

showParticles?: boolean

If true, will show particles when effect is on the entity.