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

    Class BlockPotionContainerComponentBeta

    Represents a fluid container block that currently contains a potion.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    fillLevel: number

    Relative level of potion liquid within this block. Valid values are between FluidContainer.minFillLevel (0) and FluidContainer.maxFillLevel (6).

    typeId: string

    Identifier of this component. Should always be minecraft:potionContainer.

    componentId: "minecraft:potionContainer" = 'minecraft:potionContainer'

    Identifier of this component. Should always be minecraft:potionContainer.

    Methods

    • Beta

      Parameters

      • item: ItemStack

        Potion to use as the type of potion for this potion container.

      Returns void

      Sets the potion type based on an item stack.

      This function can throw errors.