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

    Class BlockWaterContainerComponentBeta

    Represents a fluid container block that currently contains water.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    fillLevel: number

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

    typeId: string

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

    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 throw errors.

    • Beta

      Parameters

      Returns void