Edit

ItemDyeableComponent Class

Extends

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

Properties

color

color?: RGB;

Sets and returns the current color of the item.

Type: RGB

Notes:

  • This property can't be edited in restricted-execution mode.

defaultColor

read-only defaultColor?: RGB;

Returns the default color of the item.

Type: RGB

Notes:

  • This property can throw errors when used.

Constants

componentId

static read-only componentId = "minecraft:dyeable";

Type: string