Used for accessing all potion effects, liquids, and modifiers currently available for use within the world.

Hierarchy

  • Potions

Constructors

Methods

  • Parameters

    • potionEffectId: string

      A valid potion effect id. See @minecraft/vanilla-data.MinecraftPotionEffectTypes

    Returns PotionEffectType

    A type handle wrapping the valid effect id, or undefined for an invalid effect id.

    Remarks

    Retrieves a type handle for a specified potion effect id.

  • Parameters

    • potionLiquidId: string

    Returns PotionLiquidType

    A type handle wrapping the valid liquid id, or undefined for an invalid liquid id.

    Remarks

    Retrieves a type handle for a specified potion liquid id.

  • Parameters

    • potionModifierId: string

    Returns PotionModifierType

    A type handle wrapping the valid modifier id, or undefined for an invalid modifier id.

    Remarks

    Retrieves a type handle for a specified potion modifier id.