@minecraft/server
    Preparing search index...

    Class PotionsBeta

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

    Index

    Methods

    • Beta

      Parameters

      • potionEffectId: string

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

      Returns undefined | 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.

    • Beta

      Parameters

      • potionLiquidId: string

      Returns undefined | 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.

    • Beta

      Parameters

      • potionModifierId: string

      Returns undefined | 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.