SerenityJS
    Preparing search index...

    Interface ItemTypeFoodEffectOptions

    interface ItemTypeFoodEffectOptions {
        amplifier: number;
        chance: number;
        duration: number;
        name:
            | "Hunger"
            | "Speed"
            | "Slowness"
            | "Haste"
            | "MiningFatigue"
            | "Strength"
            | "InstantHealth"
            | "InstantDamage"
            | "JumpBoost"
            | "Nausea"
            | "Regeneration"
            | "Resistance"
            | "FireResistance"
            | "WaterBreathing"
            | "Invisibility"
            | "Blindness"
            | "NightVision"
            | "Weakness"
            | "Poison"
            | "Wither"
            | "HealthBoost"
            | "Absorption"
            | "Saturation"
            | "Levitation"
            | "FatalPoison"
            | "ConduitPower"
            | "SlowFalling"
            | "BadOmen"
            | "HeroOfTheVillage"
            | "Darkness"
            | "TrialOmen"
            | "WindCharged"
            | "Weaving"
            | "Oozing"
            | "Infested";
    }
    Index

    Properties

    amplifier: number

    The amplifier level of the effect.

    chance: number

    The chance (0 to 1) of the effect being applied when the food is consumed.

    duration: number

    The duration of the effect in seconds.

    name:
        | "Hunger"
        | "Speed"
        | "Slowness"
        | "Haste"
        | "MiningFatigue"
        | "Strength"
        | "InstantHealth"
        | "InstantDamage"
        | "JumpBoost"
        | "Nausea"
        | "Regeneration"
        | "Resistance"
        | "FireResistance"
        | "WaterBreathing"
        | "Invisibility"
        | "Blindness"
        | "NightVision"
        | "Weakness"
        | "Poison"
        | "Wither"
        | "HealthBoost"
        | "Absorption"
        | "Saturation"
        | "Levitation"
        | "FatalPoison"
        | "ConduitPower"
        | "SlowFalling"
        | "BadOmen"
        | "HeroOfTheVillage"
        | "Darkness"
        | "TrialOmen"
        | "WindCharged"
        | "Weaving"
        | "Oozing"
        | "Infested"

    The name of the effect to apply when the food is consumed.