Өзгерту

EntityColor2Component Class

Extends

Defines the entity's secondary color. Only works on certain entities that have secondary predefined color values (e.g., tropical fish).

Properties

value

read-only value: PaletteColor;

Value of this particular color.

Type: PaletteColor

Notes:

  • This property can throw errors when used.

Constants

componentId

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

Type: string