Script API - v1.21.90.25
    Preparing search index...

    Class PotionsBeta

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

    Index

    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.

      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.

      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.

      Retrieves a type handle for a specified potion modifier id.