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

    Class BlockPotionContainerComponentBeta

    Represents a fluid container block that currently contains a potion.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    block: Block

    Block instance that this component pertains to.

    fillLevel: number

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

    typeId: string
    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't be called in read-only mode.

      This function can throw errors.