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

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

color?: RGB

Remarks

Sets and returns the current color of the item.

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

defaultColor?: RGB

Remarks

Returns the default color of the item.

Throws

This property can throw when used.

Error

typeId: string

Remarks

Identifier of the component.

componentId: "minecraft:dyeable" = 'minecraft:dyeable'

Methods

  • Returns boolean

    Whether the component is valid.

    Remarks

    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.