minecraft:variant for you with a switch.Get GodCraftOverview
minecraft:variant is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Stores a variant number that filters and the resource pack can read to tell versions of a mob apart, like the colors of a cat.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
value | Integer | "0" | The variant number; 0 is normally the base version. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:variant": {
"value": "0"
}
}