@minecraft/server
    Preparing search index...

    Class EffectAddBeforeEventBeta

    Contains information related to changes to an effect - like poison - being added to an entity.

    Index

    Properties

    cancel: boolean

    When set to true will cancel the event.

    duration: number

    Effect duration.

    effectType: string

    The type of the effect that is being added.

    entity: Entity

    Entity that the effect is being added to.