@minecraft/server
    Preparing search index...

    Class ItemDyeableComponentBeta

    When present on an item, this item can be dyed.

    Hierarchy (View Summary)

    Index

    Properties

    color?: RGB

    Sets and returns the current color of the item.

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

    defaultColor?: RGB

    Returns the default color of the item.

    This property can throw when used.

    Error

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