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

    Class BlockPotionContainerComponentBeta

    Represents a fluid container block that currently contains a potion.

    Hierarchy (View Summary)

    Index

    Properties

    block: Block

    Block instance that this component pertains to.

    fillLevel: number

    Relative fill level of the liquid container.

    This property can't be edited in read-only mode.

    typeId: string

    Identifier of the component.

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

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

    Methods

    • Beta

      Parameters

      Returns void

      Sets the potion type based on an item stack.

      This function can't be called in read-only mode.

      This function can throw errors.