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

Hierarchy (View Summary)

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

typeId: string

Identifier of the component.

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

Methods

  • Beta

    Returns boolean

    Whether the component is valid.

    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.