1. Wiki
  2. /Entities
  3. /minecraft:color

minecraft:color

Don't want to write this by hand? GodCraft sets minecraft:color for you with a switch.Get GodCraft

Overview

minecraft:color is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Stores a color number for the entity. It only changes how vanilla entities look that already support colors, such as sheep, llamas and shulkers, but you can read it in Molang for your own.

Fields

FieldTypeDefaultDescription
valueInteger"0"Color number from the standard 16 color palette.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:color": {
    "value": "0"
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more