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

    Class BlockWaterContainerComponentBeta

    Represents a fluid container block that currently contains water.

    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:waterContainer" = 'minecraft:waterContainer'

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

    Methods

    • Beta

      Parameters

      Returns void

      Adds an item and colors the water based on a dye item type.

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

      This function can throw errors.

    • Beta

      Returns Color

      Color that is used as the base color for sign text.

      Retrieves a custom base color used for the sign text.

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

      This function can throw errors.

    • Beta

      Parameters

      Returns void

      Sets a custom base color used for the sign text.

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

      This function can throw errors.