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

    Class PotionsBeta

    Used for accessing all potion effect types, delivery types, and creating potions.

    Index

    Constructors

    Methods

    • Returns PotionDeliveryType[]

      Array of all registered delivery type handles.

      Retrieves handles for all registered potion delivery types.

    • Returns PotionEffectType[]

      Array of all registered effect type handles.

      Retrieves all type handle for all registered potion effects.

    • Parameters

      • potionDeliveryId: string

      Returns PotionDeliveryType

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

      Retrieves a type handle for a specified potion delivery id.

    • 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.