Defines the entity's color. Only works on certain entities that have predefined color values (e.g., sheep, llama, shulker).
const getEntityColorComponent = entity.getComponent("color");getEntityColorComponent.value; Copy
const getEntityColorComponent = entity.getComponent("color");getEntityColorComponent.value;
Readonly
Identifier of the component.
Value of this particular color.
This property can't be edited in read-only mode.
Static
Defines the entity's color. Only works on certain entities that have predefined color values (e.g., sheep, llama, shulker).
Example: getEntityColorComponent.js