@minecraft/server
    Preparing search index...

    Class BlockMapColorComponentBeta

    Represents the color of a block when displayed on a map.

    Hierarchy (View Summary)

    Index

    Properties

    block: Block

    Block instance that this component pertains to.

    isValid: boolean

    Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.

    typeId: string

    Identifier of the component.

    componentId: "minecraft:map_color" = 'minecraft:map_color'

    Methods

    • Beta

      Returns RGBA

      Base map color defined for that block.

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

      This function can throw errors.

      Error

    • Beta

      Returns RGBA

      Returns the base color multiplied to the evaluated tint at the given position.

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

    • Beta

      Returns TintMethod

      Type of tint applied to the color.

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

      This function can throw errors.

      Error