EntityColorComponent Class

Extends

Defines the entity's color. Only works on certain entities that have predefined color values (e.g., sheep, llama, shulker).

Properties

value

value: number;

Value of this particular color.

Type: number

Important

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

Constants

componentId

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

Type: string